"Request Body should be a valid JSON object."

Hi, i want to create registrant in my meeting but the response always says
{
“code”: 300,
“message”: “Request Body should be a valid JSON object.”
}

i follow the instruction in https://marketplace.zoom.us/docs/api-reference/zoom-api/meetings/meetingregistrantcreate

and copy paste the json but still not working…!

bellow is my screenshoot test in postman

Screenshot from 2020-06-17 15-52-58|690x388

Make sure that you message body follows JSON format.

Common mistakes include leaving a comma on the last line before the }, not quoting correctly, leaving out the : delimiter in the middle, or missing end-of-line commas on lines above the last line before the }.

Good Example
{
“item1”: “value1”,
“item2”: 100,
“item3”: “no comma here”
}

1 Like

Also, if you cut/paste from a source, there might be hidden “special characters” which might break JSON as well. You might try cutting and pasting to a text editor first, maybe check for special characters if your editor allows it, then cut/paste to Postman.

1 Like

One final thing. I’ve noticed that sometimes the examples will have different values than the actual values you need. For example, if you create a user with the “create” action, it doesn’t have a password item, if you create with “autoCreate” it does. Make sure the action you are taking uses the correct fields in the JSON.

1 Like

Thanks for your suggestions @kcdemo.gdaustin.sfcc!

@kevinkhorigin, let me know if you are still having this issue! :slight_smile:

-Tommy