I am trying to create a meeting through API. Yesterday the code worked just fine, but today I get error “Request Body should be a valid JSON object.” I have both master and admin scopes, and oauth2 credentials. Here is my code. Can you look into it, please? Tried converting meeting_data ro JSON, and it still returned an error 400 about an invalid JSON, even though python converted to JSON just fine and printed it out to terminal.
The error message says that the Request Body contains invalid data. My guess is that there’s a missing comma, missing curly bracket, the data is malformed or something along these lines. If you want us to investigate further, you should share the data in this post.
I am able to reproduce the error when I use the data you just shared and I confirm that it’s well-formed, no missing commas, brackets, etc. This leads me to think that the problem is not with the format of your JSON but rather with the actual content.
I started removing the settings nodes one by one: I removed participant_video same result, I removed waiting_room same result, and so on until I removed screen_sharing and my call was successful.
I double checked the documentation for creating a new meeting (here), more specifically the “meeting settings” and I don’t see an entry for screen_sharing. This leads me to conclude that the Zoom API is rejecting your JSON because it contains an unknown node. I must admit that it would have been helpful if the error message was more to the point.
Double checked all parameters with the documentation, everything should be valid, but I still get error:
Error when creating a meeting: 400 - <?xml version="1.0" encoding="UTF-8" standalone="yes"?>300Request Body should be a valid JSON object.
Yes, a more specific error message would be helpful. If developers at Zoom could add it in the future releases, I’m sure I wouldn’t be the only one thankful