# Got Request Body should be a valid JSON object error while create a meeting

**URL:** <https://devforum.zoom.us/t/got-request-body-should-be-a-valid-json-object-error-while-create-a-meeting/7037>\
**Category:** API and Webhooks\
**Created:** [December 12, 2019, 7:15am UTC](https://devforum.zoom.us/t/got-request-body-should-be-a-valid-json-object-error-while-create-a-meeting/7037 "2019-12-12T07:15:46Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![vena](https://avatars.discourse-cdn.com/v4/letter/v/bcef8e/32.png) [@vena](https://devforum.zoom.us/u/vena)\
**Post date:** [December 12, 2019, 7:15am UTC](https://devforum.zoom.us/t/got-request-body-should-be-a-valid-json-object-error-while-create-a-meeting/7037/1 "2019-12-12T07:15:46Z")

</div>

`POST https://api.zoom.us/v2/users/51285889/meetings` with the following request payload.

```auto
{
  "topic": "Ronald & Panda: Spanish",
  "type": 2,
  "start_time": "2019-12-11T10:35:01",
  "duration": 60,
  "timezone": "Asia/Shanghai",
  "password": "password",
  "agenda": "Agenda",
  "recurrence": {
    "type": 1,
    "repeat_interval": 1,
    "weekly_days": [1,2,3,4,5,6],
    "end_times": 50
  },
  "settings": {
    "host_video": true,
    "participant_video": true,
    "cn_meeting": true,
    "in_meeting": false,
    "join_before_host": true,
    "mute_upon_entry": false,
    "watermark": false,
    "use_pmi": false,
    "approval_type": 2,
    "registration_type": 3,
    "audio": "both",
    "auto_recording": "cloud",
    "enforce_login": false,
    "alternative_hosts": "",
    "global_dial_in_countries": [
      "US"
    ]
  }
}

```

Got

```auto
{
    "code": 300,
    "message": "Request Body should be a valid JSON object."
}

```

I don’t understand what is a valid JSON object.

---

<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:** [December 12, 2019, 5:43pm UTC](https://devforum.zoom.us/t/got-request-body-should-be-a-valid-json-object-error-while-create-a-meeting/7037/2 "2019-12-12T17:43:45Z")

</div>

Hey @vena, thanks for posting and using Zoom!

Apologies for the confusion, the `"weekly_days"` value needs to be a string not an array.

`"1,2,3,4,5,6"`

Here is the updated request payload:

```json
{
  "topic": "Ronald & Panda: Spanish",
  "type": 2,
  "start_time": "2019-12-11T10:35:01",
  "duration": 60,
  "timezone": "Asia/Shanghai",
  "password": "password",
  "agenda": "Agenda",
  "recurrence": {
    "type": 1,
    "repeat_interval": 1,
    "weekly_days": "1,2,3,4,5,6",
    "end_times": 50
  },
  "settings": {
    "host_video": true,
    "participant_video": true,
    "cn_meeting": true,
    "in_meeting": false,
    "join_before_host": true,
    "mute_upon_entry": false,
    "watermark": false,
    "use_pmi": false,
    "approval_type": 2,
    "registration_type": 3,
    "audio": "both",
    "auto_recording": "cloud",
    "enforce_login": false,
    "alternative_hosts": "",
    "global_dial_in_countries": [
      "US"
    ]
  }
}

```

Thanks,  
Tommy

---

<div class="post-metadata">

**Author:** ![devdev](https://avatars.discourse-cdn.com/v4/letter/d/3d9bf3/32.png) [@devdev](https://devforum.zoom.us/u/devdev)\
**Post date:** [May 5, 2020, 9:22am UTC](https://devforum.zoom.us/t/got-request-body-should-be-a-valid-json-object-error-while-create-a-meeting/7037/3 "2020-05-05T09:22:20Z")

</div>

I have the same error. and I try this payload. But I can not create meeting POST [https://api.zoom.us/v2/users/me/meetings](https://api.zoom.us/v2/users/me/meetings).  
So I would like you to tell me which fields are the minimum required when creating the meeting.

```
{
  "topic": "Ronald & Panda: Spanish",
  "type": 2,
  "start_time": "2019-12-11T10:35:01",
  "duration": 60,
  "timezone": "Asia/Shanghai",
  "password": "password",
  "agenda": "Agenda",
  "recurrence": {
    "type": 1,
    "repeat_interval": 1,
    "weekly_days": "1,2,3,4,5,6",
    "end_times": 50
  },
  "settings": {
    "host_video": true,
    "participant_video": true,
    "cn_meeting": true,
    "in_meeting": false,
    "join_before_host": true,
    "mute_upon_entry": false,
    "watermark": false,
    "use_pmi": false,
    "approval_type": 2,
    "registration_type": 3,
    "audio": "both",
    "auto_recording": "cloud",
    "enforce_login": false,
    "alternative_hosts": "",
    "global_dial_in_countries": [
      "US"
    ]
  }
}
```

---

<div class="post-metadata">

**Author:** ![devdev](https://avatars.discourse-cdn.com/v4/letter/d/3d9bf3/32.png) [@devdev](https://devforum.zoom.us/u/devdev)\
**Post date:** [May 6, 2020, 11:39am UTC](https://devforum.zoom.us/t/got-request-body-should-be-a-valid-json-object-error-while-create-a-meeting/7037/4 "2020-05-06T11:39:36Z")

</div>

Referring to this comment, I tried again today with this payload, but it didn’t solve it. I’m sorry if this is a busy time for you, but please take care of it.

Reference Comments:

> [@Request Body should be a valid JSON object](https://devforum.zoom.us/t/request-body-should-be-a-valid-json-object/4575/2):
>
> Hi @harishd.srv The error, Request Body should be a valid JSON object., occurs because your request body does not meet the required JSON format. Try replacing “ and ” with " ". Within recurrence, please make sure that you have added the type. For any other objects that you dont want to add values, you can just put null or remove those objects. I would recommend trying [JSON formatter](https://jsonformatter.curiousconcept.com/) to format the JSON. Thanks

payload:

```
{
  "topic": "string",
  "type": 2,
  "start_time": format_start_time,
  "duration": 60,
  "schedule_for": "",
  "timezone": "Asia/Shanghai",
  "password": "",
  "agenda": "string",
  "recurrence": {
    "type": null,
    "repeat_interval": null,
    "weekly_days": null,
    "monthly_day": null,
    "monthly_week": null,
    "monthly_week_day": null,
    "end_times": null,
    "end_date_time": null
  },
  "settings": {
    "host_video": true,
    "participant_video": false,
    "cn_meeting": false,
    "in_meeting": false,
    "join_before_host": true,
    "mute_upon_entry": true,
    "watermark": false,
    "use_pmi": false,
    "approval_type": 2,
    "registration_type": 1,
    "audio": "both",
    "auto_recording": "none",
    "enforce_login": false,
    "enforce_login_domains": "",
    "alternative_hosts": "",
    "global_dial_in_countries": null,
    "registrants_email_notification": false
  }
}

```

---

<div class="post-metadata">

**Author:** ![devdev](https://avatars.discourse-cdn.com/v4/letter/d/3d9bf3/32.png) [@devdev](https://devforum.zoom.us/u/devdev)\
**Post date:** [May 7, 2020, 1:52am UTC](https://devforum.zoom.us/t/got-request-body-should-be-a-valid-json-object-error-while-create-a-meeting/7037/5 "2020-05-07T01:52:48Z")

</div>

Hi @tommy

I’m sorry if this is a busy time for you, but please take care of it.

---

<div class="post-metadata">

**Author:** ![devdev](https://avatars.discourse-cdn.com/v4/letter/d/3d9bf3/32.png) [@devdev](https://devforum.zoom.us/u/devdev)\
**Post date:** [May 8, 2020, 10:27am UTC](https://devforum.zoom.us/t/got-request-body-should-be-a-valid-json-object-error-while-create-a-meeting/7037/6 "2020-05-08T10:27:57Z")

</div>

Self-resolved. It wasn’t a field issue, it was a formatting issue in JSON.

---

<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:** [May 13, 2020, 10:07pm UTC](https://devforum.zoom.us/t/got-request-body-should-be-a-valid-json-object-error-while-create-a-meeting/7037/7 "2020-05-13T22:07:32Z")

</div>

Happy to hear you figured out the issue! 🙂

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, 9:18pm UTC](https://devforum.zoom.us/t/got-request-body-should-be-a-valid-json-object-error-while-create-a-meeting/7037/8 "2020-08-21T21:18:19Z")

</div>


