V2 Update User not working


#1

Hi,

 

I’m able to create a valid JWT and pull user data successfully. However when I attempt to update a user I’m getting an error:

 

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

 

Your docs indicate it’s a “PATCH” http call, but in the example curl call you don’t include a -X PATCH argument…

 

for example:

 

/usr/bin/curl -X PATCH -s -S -d ‘{“first_name”:“Apache”}’ -H ‘Authorization: Bearer VALID_JWT_TOKEN’ https://api.zoom.us/v2/users/ZOOM_USER_ID

results in:

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

 

and if I call it the way the docs describe (without the -X PATCH argument) I get a huge zoom error page with no json content.

 

Any help here appreciated.

 


#2

Hi Brian, 

Yes. you do need to -X Patch in your curl command, here is a sample one below, if successful you should receive a 204 code. 

curl -X PATCH “https://api.zoom.us/v2/users/{user-id}?access_token=mLY1_5lHPdlXbRs” -H “accept: application/json” -H “Content-Type: application/json” -d “{ “first_name”: “Jim”}”

Thanks


#3

Thanks Michael. I got it working now. It would help immensely if your API docs were current and included valid, working examples.

 


#4

Hi Brain, 

Glad that you got it working, we’re working on updating our docs as we speak. 

Thanks