Request Body should be a valid JSON object

I am facing error like below
{
“code”: 300,
“message”: “Request Body should be a valid JSON object.”
}

JSON body

“topic”: “creating another meeting now from snow REST API”,
“type”: “2”,
“start_time”: “2019-06-14T10:21:57”,
“duration”: “45”,
“timezone”: “Europe/Madrid”,
“agenda”: “test”,

“recurrence”: {
“type”: “integer”,
“repeat_interval”: “integer”,
“weekly_days”: “integer”,
“monthly_day”: “integer”,
“monthly_week”: “integer”,
“monthly_week_day”: “integer”,
“end_times”: “integer”,
“end_date_time”: “2019-17-06 13:24:11”
},
“settings”: {
“host_video”: “true”,
“participant_video”: “true”,
“join_before_host”: “False”,
“mute_upon_entry”: “False”,
“watermark”: “true”,
“audio”: “voip”,
“auto_recording”: “cloud”
}
}

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 to format the JSON.

Thanks

I have been trying to create webinar using webinar api post method.
Web trial.

JSON object seems to be perfect for me. I would like to get some assistance over this issue.

In my opinion, section recurrence should be like this:

“recurrence”: {
“type”: 1,
“repeat_interval”: 1,
“end_date_time”: “2019-06-14T10:21:57” <- same as start_time
},

this is sample, please replace “integer”=>1 or some value
“integer” or “string” or “boolen” is data type for this field

Thanks for following up @tranvuong1803 :smiley: :raised_hands: