# Internal error (500) When Creating a Timeline Event

**URL:** <https://community.hubspot.com/t/internal-error-500-when-creating-a-timeline-event/18736>\
**Category:** APIs & Integrations\
**Tags:** events\
**Created:** [February 12, 2020, 1:41pm UTC](https://community.hubspot.com/t/internal-error-500-when-creating-a-timeline-event/18736 "2020-02-12T13:41:06Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![willvitt](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/willvitt/32/52876_2.png) [@willvitt](https://community.hubspot.com/u/willvitt)\
**Post date:** [February 12, 2020, 1:41pm UTC](https://community.hubspot.com/t/internal-error-500-when-creating-a-timeline-event/18736/1 "2020-02-12T13:41:06Z")

</div>

Hello everyone!

I’ve been trying to create an app to simply get a feedback message on deals timelines everytime an SMS text message is sent. So I did create an app and I did authenticate it to a testing account, but while testing it out to try and create the event using a PUT, I get a 500 internal error. I wonder if I’m missing something…

I’m using POSTMAN and here’s a screenshot of the body and headers I’m sending:

 ![image.png](https://d2qpr2jzcazej7.cloudfront.net/original/1X/00c3b10d1ea3dfcd176c66efd2c3221aed071bf6.png)  
Body of the request  
 ![image.png](https://d2qpr2jzcazej7.cloudfront.net/original/2X/4/4cbe922f2ec0adef0e42019cfd464aee5e5b0c6a.png)  
Headers of the request

Can anybody help me with this issue?

Thanks in advance!

---

<div class="post-metadata">

**Author:** ![WendyGoh](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/wendygoh/32/42320_2.png) [@WendyGoh](https://community.hubspot.com/u/WendyGoh)\
**Post date:** [February 13, 2020, 3:35am UTC](https://community.hubspot.com/t/internal-error-500-when-creating-a-timeline-event/18736/2 "2020-02-13T03:35:58Z")

</div>

Hey @willvitt,

When looking to create/update a timeline event using the [Create or update a timeline event endpoint](https://developers.hubspot.com/docs/methods/timeline/create-or-update-event), the body data that we are sending across is a JSON formatted data and not form-data. As such, you would need to change the body type to ‘_Raw_’ \> In ‘_JSON_’ format. Something like this:

 ![postManExample.png](https://d2qpr2jzcazej7.cloudfront.net/original/3X/1/d/1da0711868a01df778370b0bba82d5dce8f0dc3f.png)

Let me know if this works for you!

---

<div class="post-metadata">

**Author:** ![willvitt](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/willvitt/32/52876_2.png) [@willvitt](https://community.hubspot.com/u/willvitt)\
**Post date:** [February 13, 2020, 11:30am UTC](https://community.hubspot.com/t/internal-error-500-when-creating-a-timeline-event/18736/3 "2020-02-13T11:30:26Z")

</div>

Thank you very much, that did work out!
