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?