# Create webinar is not working

**URL:** <https://devforum.zoom.us/t/create-webinar-is-not-working/7494>\
**Category:** API and Webhooks\
**Created:** [January 14, 2020, 7:56am UTC](https://devforum.zoom.us/t/create-webinar-is-not-working/7494 "2020-01-14T07:56:19Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![srini.adepu](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/srini.adepu/32/2762_2.png) [@srini.adepu](https://devforum.zoom.us/u/srini.adepu)\
**Post date:** [January 14, 2020, 7:56am UTC](https://devforum.zoom.us/t/create-webinar-is-not-working/7494/1 "2020-01-14T07:56:19Z")

</div>

**Description**  
create webinar is not working with default example json

**Error**  
{  
“code”: 300,  
“message”: “Request Body should be a valid JSON object.”  
}

**Which App Type (OAuth / Chatbot / JWT / Webhook)?**  
Oauth

**Which Endpoint/s?**  
[https://api.zoom.us/v2/users/{userId}/webinars](https://api.zoom.us/v2/users/%7BuserId%7D/webinars)

**How To Reproduce (If applicable)**  
Steps to reproduce the behavior:

1. Request url - [https://api.zoom.us/v2/users/{userId}/webinars](https://api.zoom.us/v2/users/%7BuserId%7D/webinars)
2. Add userid, oauth access token
3. copy the example json and post it
4. See error

---

<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:** [January 14, 2020, 5:25pm UTC](https://devforum.zoom.us/t/create-webinar-is-not-working/7494/2 "2020-01-14T17:25:56Z")

</div>

Hey @srini.adepu,

This error means your request body is malformed.

Please share your request body JSON so I can debug.

Thanks,  
Tommy

---

<div class="post-metadata">

**Author:** ![srini.adepu](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/srini.adepu/32/2762_2.png) [@srini.adepu](https://devforum.zoom.us/u/srini.adepu)\
**Post date:** [January 14, 2020, 5:46pm UTC](https://devforum.zoom.us/t/create-webinar-is-not-working/7494/3 "2020-01-14T17:46:00Z")

</div>

{  
“topic”: “Test Webinar”,  
“type”: 5,  
“start\_time”: “2020-09-20T06:59:00Z”,  
“duration”: “60”,  
“timezone”: “America/Los\_Angeles”,  
“password”: “avfhfgh”,  
“agenda”: “Test Webinar”,  
“recurrence”: {  
“type”: 1,  
“repeat\_interval”: 1,  
“end\_date\_time”: “2020-09-20T06:59:00Z”  
},  
“settings”: {  
“host\_video”: “true”,  
“panelists\_video”: “true”,  
“practice\_session”: “true”,  
“hd\_video”: “true”,  
“approval\_type”: 0,  
“registration\_type”: “integer”,  
“audio”: “both”,  
“auto\_recording”: “none”,  
“enforce\_login”: “false”,  
“enforce\_login\_domains”: “”,  
“alternative\_hosts”: “”,  
“close\_registration”: “true”,  
“show\_share\_button”: “true”,  
“allow\_multiple\_devices”: “false”,  
“registrants\_email\_notification”: “true”  
}  
}

---

<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:** [January 14, 2020, 5:52pm UTC](https://devforum.zoom.us/t/create-webinar-is-not-working/7494/4 "2020-01-14T17:52:47Z")

</div>

Hey @srini.adepu,

Simple mistake, for the `"registration_type"` you have the String `"integer"` as the value.

The `"registration_type"` must be of type Integer, `1`, `2`, or, `3`.

 ![Screen Shot 2020-01-14 at 10.50.26 AM](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/2X/b/bbb4672073668008f067bc5e5b8eab9cf6f27a56.png)

Although, since you have `"approval_type"` set to `0` which means automatically approve, you don’t even need the `"registration_type"` property.

![Screen Shot 2020-01-14 at 10.52.02 AM](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/2X/a/aaf688b89439377f62bbb6c06bcee35674d71ebe.png)

Here is the correct JSON:

```json
{
  "topic": "Test Webinar",
  "type": 5,
  "start_time": "2020-09-20T06:59:00Z",
  "duration": "60",
  "timezone": "America/Los_Angeles",
  "password": "avfhfgh",
  "agenda": "Test Webinar",
  "recurrence": {
    "type": 1,
    "repeat_interval": 1,
    "end_date_time": "2020-09-20T06:59:00Z"
  },
  "settings": {
    "host_video": true,
    "panelists_video": true,
    "practice_session": true,
    "hd_video": true,
    "approval_type": 0,
    "audio": "both",
    "auto_recording": "none",
    "enforce_login": false,
    "enforce_login_domains": "",
    "alternative_hosts": "",
    "close_registration": true,
    "show_share_button": true,
    "allow_multiple_devices": false,
    "registrants_email_notification": true
  }
}

```

Thanks,  
Tommy

---

<div class="post-metadata">

**Author:** ![srini.adepu](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/srini.adepu/32/2762_2.png) [@srini.adepu](https://devforum.zoom.us/u/srini.adepu)\
**Post date:** [January 14, 2020, 6:17pm UTC](https://devforum.zoom.us/t/create-webinar-is-not-working/7494/5 "2020-01-14T18:17:35Z")

</div>

Thanks for the quick response.

I dont have registration type field in my json file.

---

<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:** [January 14, 2020, 6:19pm UTC](https://devforum.zoom.us/t/create-webinar-is-not-working/7494/6 "2020-01-14T18:19:01Z")

</div>

Hey @srini.adepu,

In the JSON you shared, you do:

 ![Screen Shot 2020-01-14 at 11.18.37 AM](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/2X/3/38a312e4f4fac9de47d11c10cebdc704e8e8e10d.png)

Thanks,  
Tommy

---

<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, 7:11pm UTC](https://devforum.zoom.us/t/create-webinar-is-not-working/7494/7 "2020-08-21T19:11:34Z")

</div>


