add registrant to a meeting issue


#1

hi, I’m testing v2 api on postman. I’m able to run get meeting details or list meeting registrants with api. then I tried to add a registrant to the meeting, but keep getting the error:

{
“code”: 300,
“message”: “Unsupported Content Type”
}

 

below is the request. any ideas?

 

curl -X POST \
https://api.zoom.us/v2/meetings/mymeetingid/registrants \
-H ‘Authorization: Bearer xxxxxxxxxxx’ \
-H ‘Cache-Control: no-cache’ \
-H ‘Postman-Token: 5023b846-4aasdfasdfd3be9aaaf’ \
-d ‘{
“email”: “biddddddddd@gmail.com”,
“first_name”: “myname”,
“last_name”: “manyname”,
“custom_questions”: [
{
“City”: “sf”,
“Country”: “usa”,
“Job Title”: “sde”,
“Company”: “mycompany”
}
]
}’


#2

Hi Bill, 

Were you able to add ‘Content-Type: application/json’ to the header of postman?

Thanks

Michael


#3

works now. thank you Michael for the prompt help.