coda
(Coda)
August 28, 2020, 2:14pm
1
I am testing with creating a new Meeting via the API.
I am getting this error:
{"code":300,"message":"Request Body should be a valid JSON object."}
With this JSON, which seems valid and passes validation:
{
"topic": "Test 28/8",
"type": "1",
"start_time": "2020-08-28T16:30:00",
"timezone": "Asia/Jerusalem",
"duration": "60",
"password": "112233",
"settings": {
"host_video": "true",
"participant_video": "true",
"cn_meeting": "false",
"in_meeting": "false",
"join_before_host": "true",
"mute_upon_entry": "true",
"watermark": "true",
"use_pmi": "boolean",
"approval_type": "0",
"registration_type": "0",
"audio": "both",
"auto_recording": "none",
"registrants_email_notification": "false"
}
}
Can someone shed some light on this?
Thanks!
Hey @coda
Thanks for posting on the Zoom Devforum! I am still learning, but I will try my best to help answer your question.
Checkout this related thread that may have the answer you are looking for:
POST https://api.zoom.us/v2/users/51285889/meetings with the following request payload.
{
"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_m…
If this thread did not help, please let us know by replying back here and someone from the Developer Relations team will get back to you shortly.
Thanks,
DeveloperBot
coda
(Coda)
August 28, 2020, 2:48pm
3
The suggested link didnt help, thanks.
But I may have a solution. I was sending the JSON in string form, which is sometimes acceptable in API scenario’s. It seems that if I send as a JSON object, the above code may work.
tommy
(Tommy Gaessler)
September 2, 2020, 6:19pm
4
Hey @coda ,
Yes, the Zoom API is expecting the request body in JSON format.
Thanks,
Tommy
2 Likes
system
(system)
Closed
October 3, 2020, 4:20am
5
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.