# Receiving Bad Request when attempting to create a zoom event

**URL:** <https://devforum.zoom.us/t/receiving-bad-request-when-attempting-to-create-a-zoom-event/92823>\
**Category:** API and Webhooks\
**Tags:** api\
**Created:** [August 2, 2023, 3:50pm UTC](https://devforum.zoom.us/t/receiving-bad-request-when-attempting-to-create-a-zoom-event/92823 "2023-08-02T15:50:56Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![trainingBcc](https://avatars.discourse-cdn.com/v4/letter/t/c4cdca/32.png) [@trainingBcc](https://devforum.zoom.us/u/trainingBcc)\
**Post date:** [August 2, 2023, 3:50pm UTC](https://devforum.zoom.us/t/receiving-bad-request-when-attempting-to-create-a-zoom-event/92823/1 "2023-08-02T15:50:56Z")

</div>

I am attempting to create a zoom event via the API and receiving a 400 Bad Request error without any indication what data provided is incorrect or missing.

I am posting to this endpoint [https://api.zoom.us/v2/zoom\_events/events](https://api.zoom.us/v2/zoom_events/events) using a server to server oauth2 internal app.

Working in C# to send a post request. Here is the JSON body content to create the event

{“event\_id”:null,“name”:“DEV-Zoom live Event Test”,“hub\_id”:“_ **REDACTED** _”,“description”:“Zoom live Event Test”,“timezone”:“America/Chicago”,“event\_type”:“CONFERENCE”,“access\_level”:“PRIVATE\_RESTRICTED”,“meeting\_type”:“MEEETING”,“categories”:[“Business and Networking”],“tags”:null,“calendar”:[{“start\_time”:“2023-08-02T05:00:00Z”,“end\_time”:“2023-09-07T05:00:00Z”}],“status”:null,“start\_time”:“2023-08-23T05:00:00Z”,“end\_time”:“2023-08-23T06:00:00Z”,“contact\_name”:“”,“lobby\_start\_time”:“2023-08-02T05:00:00Z”,“lobby\_end\_time”:“2023-09-07T05:00:00Z”,“event\_url”:null,“blocked\_countries”:}

I’ve successfully posted to the webinar API. So I’m reasonably confident the the method of posting the data is fine. Surely there is some incorrect data here but again I have no indication as to which data is problematic.

---

<div class="post-metadata">

**Author:** ![trainingBcc](https://avatars.discourse-cdn.com/v4/letter/t/c4cdca/32.png) [@trainingBcc](https://devforum.zoom.us/u/trainingBcc)\
**Post date:** [August 2, 2023, 6:16pm UTC](https://devforum.zoom.us/t/receiving-bad-request-when-attempting-to-create-a-zoom-event/92823/2 "2023-08-02T18:16:13Z")

</div>

For anyone curious, I ended up solving this by providing a completely empty object, and then letting the zoom API tell me what was missing. I dumbed the request way down to something like this which worked

{  
“name”: “DEV-Zoom live Event Test”,  
“hub\_id”: “_ **Redacted** _”,  
“description”: “Zoom live Event Test”,  
“timezone”: “America/Chicago”,  
“event\_type”: “SIMPLE\_EVENT”,  
“calendar”: [  
{  
“start\_time”: “2023-09-02T05:00:00Z”,  
“end\_time”: “2023-09-02T06:00:00Z”  
}  
]  
}

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/3X/6/1/614bdd549b610bbaa46ff934617683a02bdaa03c.png) [@system](https://devforum.zoom.us/u/system)\
**Post date:** [August 5, 2024, 9:52am UTC](https://devforum.zoom.us/t/receiving-bad-request-when-attempting-to-create-a-zoom-event/92823/3 "2024-08-05T09:52:14Z")

</div>

Closed on August 5, 2024, 9:52am UTC

This topic was automatically closed 368 days after the last reply. New replies are no longer allowed.
