Response "< HTTP/2 200" when trying to delete a user

Hi,

I am able to add a user using the Zoom API and now I’m trying to use the API to delete a user.

Here is what I am trying:

curl -v -X POST -H “Content-Type: application/json” -H “Authorization: Bearer ” “https://api.zoom.us/v2/DELETE/users/

But I get the following response code:

< HTTP/2 200

Please let me know what I need to correct in my API call.

Thank you!

Joe

Hi,

As I re-read my post, I realized that some information was inadvertently left out. I am re-posting the command I am using:

curl -v -X POST -H “Content-Type: application/json” -H “Authorization: Bearer " “https://api.zoom.us/v2/DELETE/users/

Thanks for any insight!

Joe

Gah! Did it again. I guess I can’t use the less-than and greater-than symbols in my example command.

Once again:

curl -v -X POST -H “Content-Type: application/json” -H “Authorization: Bearer my_api_token” “https://api.zoom.us/v2/DELETE/users/email_address_of_user_to_be_deleted

where “my_api_token” is acquired by a previous, authentication call.

This call responds with HTTP/2 200. I’m just trying to delete a user.

Thank you,
Joe

Hi @itadmin2
Thanks for reaching out to the Zoom Developer Forum, I am happy to help here!
It looks like you are calling the POST method in your curl request, make sure to pass the DELETE action

Hope this helps,
Elisa

Hi Elisa,

Thanks very much for your response!

Unfortunately, after changing the action from POST to DELETE, I’m still getting the HTTP/2 200 response.

So, here is what I tried:

curl -v -X DELETE -H “Content-Type: application/json” -H “Authorization: Bearer really-long-API-token” “https://api.zoom.us/v2/DELETE/users/email-address-of-user-to-delete

I would love to hear any other ideas you have. Please let me know of any other information you need from me.

Thank you!

So can you confirm that you are not deleting the user? @itadmin2
You are getting a 200 when deleting, after deleting can you try and query that same user to make sure that it got deleted?