Unable to create timeline event

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.

Hey @pranesaminathan

Is this issue persisting? Does it occur other contacts?

Yes still I have the same issue. It’s occurs for all contacts.

@tominal , any thoughts on what is happening here?

I haven’t used the v1 version of this endpoint and I can’t see anything wrong with the request without verifying the contact ID. You could also try replacing the objectId with an email.
Have you tried using the v3 version of the timeline events API?

Hope that helps.

Thanks, @tominal, and @dennisedson I have fixed the issue.

@pranesaminathan , what was your solution?