Trying to create a meeting through the API but I get "Invalid JSON error message"

Description
I am running a test in https://marketplace.zoom.us/docs/api-reference/zoom-api/meetings/meetingcreate to create meetings through API but i keep getting the error below. Any assistance will be highly appreciated.

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

Which Endpoint/s?
https://api.zoom.us/v2/users/{userId}/meetings

How To Reproduce (If applicable)
This is the body of the request.

{
  "topic": "Value",
  "type": 1,
  "start_time": "04/22/2020 02:30 PM",
  "duration": 60,
  "timezone": "America/New_York",
  "password": "834073",
  "agenda": "Nothing to show",
  "recurrence": {
    "type": 1,
    "repeat_interval": "integer",
    "weekly_days": "string",
    "monthly_day": "integer",
    "monthly_week": "integer",
    "monthly_week_day": "integer",
    "end_times": "integer",
    "end_date_time": "string [date-time]"
  },
  "settings": {
    "host_video": true,
    "participant_video": true,
    "cn_meeting": true,
    "in_meeting": true,
    "join_before_host": false,
    "mute_upon_entry": false,
    "watermark": false,
    "use_pmi": false,
    "approval_type": 1,
    "registration_type": 1,
    "audio": "Both",
    "auto_recording": "off",
    "enforce_login": false,
    "enforce_login_domains": "off",
    "alternative_hosts": "none",
    "global_dial_in_countries": [
      {
        "city": "New York",
        "country": "US",
        "country_name": "US",
        "number": "+1 1000200200",
        "type": "toll"
      },
      {
        "city": "San Jose",
        "country": "US",
        "country_name": "US",
        "number": "+1 6699006833",
        "type": "toll"
      },
      {
        "city": "San Jose",
        "country": "US",
        "country_name": "US",
        "number": "+1 408000000",
        "type": "toll"
      }
    ],
    "registrants_email_notification": true
  }
}

Resolved, error is in the global_dial_in_countries. It should be in the following format
“global_dial_in_countries”: [
“US”
]

1 Like

Happy to hear you figured out the issue! :slight_smile:

Please also make sure you are passing the start_time in the correct format:

YYYY-MM-DDTHH:MM:SSZ

And using correct values for the recurrence object.

Thanks,
Tommy