I cannot create a timeline event with developer api via oAUTH
get error 422 with message "eventTypeId must be greater than or equal to 1 (was 0)"
It appears the format must need to be different as compared to generating other things like Contacts.
In my developer portal, my body is below which you can see is setting eventTypeId. Must be something simple that I just have wrong in my call. Also, response copy below from dev portal.
{"status":"error","message":"unprocessable entity","correlationId":"34983d9e-2be3-4b3c-85a0-587f7f5e09e3","errors":["eventTypeId must be greater than or equal to 1 (was 0)","id may not be null (was null)"],"requestId":"5d6a1079476d970af765a72fbf66e925"}
also would like to not on this issue that the timeline excepts the data sent to be in a different format than the property format. api is looking for something raw like this;
{
"id": params.id,
"eventTypeId": params.eventTypeId,
"DESCRIPTION": params.DESCRIPTION,
"email": params.email,
"timestamp": params.timestamp,
"DATE": params.DATE
}
Have you checked the timeline filters on that particular object record? If that's not the issue, can you give me a link to the object record in HubSpot and also a link to your dev portal?
also would like to not on this issue that the timeline excepts the data sent to be in a different format than the property format. api is looking for something raw like this;
{
"id": params.id,
"eventTypeId": params.eventTypeId,
"DESCRIPTION": params.DESCRIPTION,
"email": params.email,
"timestamp": params.timestamp,
"DATE": params.DATE
}