I’m trying to create a timeline event based on contact vid.
Event Information:
[
{
"id": 10***,
"name": "Survey",
"headerTemplate": "Survey Taken - {{#formatDate timestamp}}{{/formatDate}}",
"detailTemplate": "",
"applicationId": 24**,
"objectType": "CONTACT"
}
]
Event Creation Snippet:
url = 'https://api.hubapi.com/integrations/v1/24***/timeline/event?hapikey=dbf40fbf-*****&userId=1*****'
headers = {}
headers['Content-Type'] = 'application/json'
data ={
"id": 123,
"applicationId": 24**,
"objectId": 164**,
"eventTypeId": 10**,
"timestamp": 1600255228000
}
Error:
{'eventErrorEntityType': 'OBJECT_NOT_FOUND', 'status': 'error', 'message': 'Object not found vid : 16***', 'correlationId': 'b1451a24-050c-4057-8cc8-cb67bec51fc9', 'identifierName': 'vid', 'identifierValue': '16***'}
400 -error
I set the objectId field to the VID of the contact.