Create meeting API is responsed back with Request Body should be a valid JSON object

Description
A clear and concise description of what the question is.
Getting Request Body should be a valid JSON object when create meeting API is called through PHP, But same jason generated through application works well in Postman
Error
The full error message or issue you are running into.

Which App Type (OAuth / Chatbot / JWT / Webhook)?
Knowing the endpoint/s can help us to identify your issue faster. Please link the ones you need help/have a question with.
I am using JWT
Which Endpoint/s?
Knowing the API endpoint/s can help us to identify your issue faster. Please link the ones you need help/have a question with.
https://api.zoom.us/v2/users/abc@gmail.com/meetings
How To Reproduce (If applicable)
Steps to reproduce the behavior:

  1. Request URL / Headers (without credentials) / Body
  2. See error

Screenshots (If applicable)
If applicable, add screenshots to help explain your problem.
image
Additional context
Add any other context about the problem here.

Here is the json created and passed to API request and works well in postman but gives above error,

json

{
“topic”:“Akkalkot Darshan”,
“type”:“8”,
“start_time”:“2020-06-26T14:30:00Z”,
“duration”:60,
“password”:“sws”,
“recurrence”:{
“type”:“1”,“repeat_interval”:“1”,“weekly_days”:“4”,“monthly_day”:30,“monthly_week”:“4”,“monthly_week_day”:“4”,“end_times”:1,“end_date_time”:“2020-07-04T16:20:00Z”},
“settings”:{
“host_video”:true,
“participant_video”:true,
“cn_meeting”:false
,“in_meeting”:false
,“join_before_host”:false,
“mute_upon_entry”:false,
“watermark”:false,
“use_pmi”:false,
“approval_type”:0,
“registration_type”:1,
“audio”:“both”,
“auto_recording”:“none”,
“alternative_hosts”:"",
“close_registration”:true,
“waiting_room”:true,
“contact_name”:“Umesh”,
“contact_email":"abc@gmail.com”,
“registrants_email_notification”:“true”,
“meeting_authentication”:true,
“authentication_option”:"",
“authentication_domains”:""
}
}

Hey @umeshsamant5001,

There were a few fields that you set the wrong types for. Make sure to double check you are setting integers for integers and booleans for booleans.

This JSON worked for me:

{
  "topic": "Akkalkot Darshan",
  "type": 8,
  "start_time": "2020-06-26T14:30:00Z",
  "duration": 60,
  "password": "123abc",
  "recurrence": {
    "type": "1",
    "repeat_interval": "1",
    "weekly_days": "4",
    "monthly_day": 30,
    "monthly_week": "4",
    "monthly_week_day": "4",
    "end_times": 1,
    "end_date_time": "2020-07-04T16:20:00Z"
  },
  "settings": {
    "host_video": true,
    "participant_video": true,
    "cn_meeting": false,
    "in_meeting": false,
    "join_before_host": false,
    "mute_upon_entry": false,
    "watermark": false,
    "use_pmi": false,
    "approval_type": 0,
    "registration_type": 1,
    "audio": "both",
    "auto_recording": "none",
    "alternative_hosts": "",
    "close_registration": true,
    "waiting_room": true,
    "contact_name": "Umesh",
    "contact_email": "abc@gmail.com",
    "registrants_email_notification": true,
    "meeting_authentication": true,
    "authentication_option": "",
    "authentication_domains": ""
  }
}

Thanks,
Tommy

Thanks Tommy for your valuable time.
I was wondering why same jason input works well in postman but fails through API request from php application.
Some where it should be specified where the exact problem is. Because any one would prepare the json which works well in postman or any other tool for get/post zoom API request.
Thank you so much for the solution.

Umesh…

1 Like

Hey @umeshsamant5001,

It could be a case of an extra " or something in your PHP Application.

Happy to help!

Thanks,
Tommy