# JSON formatting for post requests (Error 300)

**URL:** <https://devforum.zoom.us/t/json-formatting-for-post-requests-error-300/5071>\
**Category:** API and Webhooks\
**Created:** [July 17, 2019, 4:51pm UTC](https://devforum.zoom.us/t/json-formatting-for-post-requests-error-300/5071 "2019-07-17T16:51:34Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![kamal](https://avatars.discourse-cdn.com/v4/letter/k/a698b9/32.png) [@kamal](https://devforum.zoom.us/u/kamal)\
**Post date:** [July 17, 2019, 4:51pm UTC](https://devforum.zoom.us/t/json-formatting-for-post-requests-error-300/5071/1 "2019-07-17T16:51:34Z")

</div>

I’m struggling with POST requests and the JSON formatting of the content in the request body. For example, if I merely use the create a meeting API and programmatically use ‘type’: 1 in my qs field (using request-promise in node) I get an error 300 “Request Body should be a valid JSON object.”.  
Now I’ve tried it in Postman as well but if someone could pls point out how to properly format the JSON for a post request using an example, that would be wonderful.  
Thanks!

---

<div class="post-metadata">

**Author:** ![tommy](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/tommy/32/72769_2.png) [@tommy](https://devforum.zoom.us/u/tommy)\
**Post date:** [July 17, 2019, 4:54pm UTC](https://devforum.zoom.us/t/json-formatting-for-post-requests-error-300/5071/2 "2019-07-17T16:54:23Z")

</div>

Hey @kamal,

Can you post your JSON request body so I can reproduce the issue?

Thanks,  
Tommy

---

<div class="post-metadata">

**Author:** ![kamal](https://avatars.discourse-cdn.com/v4/letter/k/a698b9/32.png) [@kamal](https://devforum.zoom.us/u/kamal)\
**Post date:** [July 17, 2019, 5:32pm UTC](https://devforum.zoom.us/t/json-formatting-for-post-requests-error-300/5071/3 "2019-07-17T17:32:01Z")

</div>

Hey @tommy  
thanks for your quick reply and I’ve seen my mistake in my code just when you responded. The problem was that I accidentally had qs (query string parameters) instead of body aka there was no body being passed to the API. I suppose the API provides the standard error 300 response in this case. Hence, problem is me, not the API.  
Thanks,  
Kamal

---

<div class="post-metadata">

**Author:** ![tommy](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/tommy/32/72769_2.png) [@tommy](https://devforum.zoom.us/u/tommy)\
**Post date:** [July 17, 2019, 5:54pm UTC](https://devforum.zoom.us/t/json-formatting-for-post-requests-error-300/5071/4 "2019-07-17T17:54:17Z")

</div>

No problem! Happy to help!

---

<div class="post-metadata">

**Author:** ![DeveloperBot](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/developerbot/32/12632_2.png) [@DeveloperBot](https://devforum.zoom.us/u/DeveloperBot)\
**Post date:** [August 21, 2020, 6:34pm UTC](https://devforum.zoom.us/t/json-formatting-for-post-requests-error-300/5071/5 "2020-08-21T18:34:46Z")

</div>

Closed on August 21, 2020, 6:34pm UTC


