# Unable to create timeline event

**URL:** <https://community.hubspot.com/t/unable-to-create-timeline-event/32531>\
**Category:** APIs & Integrations\
**Tags:** contacts, timeline-and-extensions-apis\
**Created:** [March 2, 2021, 2:43pm UTC](https://community.hubspot.com/t/unable-to-create-timeline-event/32531 "2021-03-02T14:43:43Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![pranesaminathan](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/pranesaminathan/32/92090_2.png) [@pranesaminathan](https://community.hubspot.com/u/pranesaminathan)\
**Post date:** [March 2, 2021, 2:43pm UTC](https://community.hubspot.com/t/unable-to-create-timeline-event/32531/1 "2021-03-02T14:43:43Z")

</div>

I’m trying to create a timeline event based on contact vid.

Event Information:

```lia-code-sample
[
{
"id": 10***,
"name": "Survey",
"headerTemplate": "Survey Taken - {{#formatDate timestamp}}{{/formatDate}}",
"detailTemplate": "",
"applicationId": 24**,
"objectType": "CONTACT"
}
]

```

Event Creation Snippet:

```lia-code-sample
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:

```lia-code-sample
{'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.

---

<div class="post-metadata">

**Author:** ![dennisedson](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/dennisedson/32/28044_2.png) [@dennisedson](https://community.hubspot.com/u/dennisedson)\
**Post date:** [March 3, 2021, 8:47pm UTC](https://community.hubspot.com/t/unable-to-create-timeline-event/32531/2 "2021-03-03T20:47:02Z")

</div>

Hey @pranesaminathan

Is this issue persisting? Does it occur other contacts?

---

<div class="post-metadata">

**Author:** ![pranesaminathan](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/pranesaminathan/32/92090_2.png) [@pranesaminathan](https://community.hubspot.com/u/pranesaminathan)\
**Post date:** [March 4, 2021, 12:41am UTC](https://community.hubspot.com/t/unable-to-create-timeline-event/32531/3 "2021-03-04T00:41:43Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![dennisedson](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/dennisedson/32/28044_2.png) [@dennisedson](https://community.hubspot.com/u/dennisedson)\
**Post date:** [March 4, 2021, 5:27pm UTC](https://community.hubspot.com/t/unable-to-create-timeline-event/32531/4 "2021-03-04T17:27:20Z")

</div>

@tominal , any thoughts on what is happening here?

---

<div class="post-metadata">

**Author:** ![tominal](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/tominal/32/73018_2.png) [@tominal](https://community.hubspot.com/u/tominal)\
**Post date:** [March 4, 2021, 5:52pm UTC](https://community.hubspot.com/t/unable-to-create-timeline-event/32531/5 "2021-03-04T17:52:49Z")

</div>

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?

> **[Accounts Dashboard | HubSpot](https://app.hubspot.com/myaccounts?next=developerdocs&redirect=%2Fapi-reference%2Fcrm-timeline-v3%2Fguide)**

Hope that helps.

---

<div class="post-metadata">

**Author:** ![pranesaminathan](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/pranesaminathan/32/92090_2.png) [@pranesaminathan](https://community.hubspot.com/u/pranesaminathan)\
**Post date:** [March 5, 2021, 8:42am UTC](https://community.hubspot.com/t/unable-to-create-timeline-event/32531/6 "2021-03-05T08:42:56Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![dennisedson](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/dennisedson/32/28044_2.png) [@dennisedson](https://community.hubspot.com/u/dennisedson)\
**Post date:** [March 5, 2021, 2:38pm UTC](https://community.hubspot.com/t/unable-to-create-timeline-event/32531/7 "2021-03-05T14:38:21Z")

</div>

@pranesaminathan , what was your solution?
