Unsupported Media Type - create meeting

Description
I am getting an error when trying to create a meeting. I have registered my app as JWT app. I am using fetch from wix to call the API.

Error
The error is 415, Unsupported Media Type

Which App Type (OAuth / Chatbot / JWT / Webhook)?
JWT type app.

Which Endpoint/s?
The entire code is given below

export function zoomMeeting () {
let url = “https://api.zoom.us/v2/users/{my email id}/meetings”
let options = {
“method”:“POST”,
“headers”:{
“authorization”: "Bearer {have included my JWT here}
},
“body” : {
“topic”: “Test Meeting”,
“type”:2,
“start_time”:“2020-12-07T21:00:00”,
“timezone”:“Asia/Calcutta”,
“duration”:40,
“password”:“brainiacs”,
“agenda”:“trial meeting”}
}

return fetch(url, options)
.then((response)=>{
	return (response)
})

}

My apologies. This is resolved.

Glad you were able to resolve the issue, @brainiacsindia!

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.