error code 300 Request Body should be a valid JSON object.


#1

I am trying to create a meeting through API request so that i form the request object as follows

it is post request to zoom api

{
“method” : “POST”,
“url” : ‘https://api.zoom.us/v2/users/userid/meetings’,
“data” : JSON.stringify({}),
“contentType”: ‘application/json;charset=UTF-8’,
headers : {
“Authorization”:"Bearer "+jwt.sign(payload, “XXXXXXXXXXXXXXXXXX”),
“Content-Type”:“application/json;charset=UTF-8”,
“Accept”:“application/json;charset=UTF-8”
}
}

it is giving the following error

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


#2

@Hussain, please set correct JSON to request body.