object named 'undefined' in Webhook API event data

Hello,
I am using the Webhook API to subscribe to

company.associationChange events. I receive the events as expected, but the event data looks like this:

{
 "method": "unknown",
 "data": {
 "undefined": {
 "eventId": 'censored',
 "subscriptionId": 'censored',
 "portalId": 'censored',
 "appId": 'censored',
 "occurredAt": 1706262994435,
 "subscriptionType": "company.associationChange",
 "attemptNumber": 0,
 "changeSource": "USER",
 "associationType": "COMPANY_TO_CONTACT",
 "fromObjectId": 'censored',
 "toObjectId": 'censored',
 "associationRemoved": false,
 "isPrimaryAssociation": false
 }
 },
 "query": {}
}

The problem here being that the object containing the event data is inside an object named “undefined”. I am guessing this is not expected behavior. Can we rely on referencing “undefined” in this API version, or will it be fixed and changed to something that makes sense which would be a breaking API?

Hey, @lennart-sve That is unexpected for sure. Do you get the same or similar response when for other webhooks? I am not sure if you’ve tested other variations.

Thanks for the additional information! — Jaycee

Hi @Jaycee_Lewis,
I did test a few other variants. When I try

contact.associationChange I get the same structure with undefined as the object name.
However, with for example company.creation, I get this structure which makes more sense:

"data": {
 "9795991267": {
 "eventId": 1852872255,
 "subscriptionId": 'censored',
 "portalId": 'censored',
 "appId": 'censored',
 "occurredAt": 1706519193462,
 "subscriptionType": "company.creation",
 "attemptNumber": 0,
 "objectId": 'censored',
 "changeFlag": "CREATED",
 "changeSource": "CRM_UI",
 "sourceId": "userId:censored"
 }
 },

So it seems to be a general issue for the associations webhook, but not the other objects, perhaps?