Description
I am trying to use the API to update a user’s Zoom Profile. What I want to do is remove the phone number listed on their profile. I can change the number listed but not fully delete it.
Error
Returns 204 success when the phone number is not removed. Using the code snip below.
Which App Type (OAuth / Chatbot / JWT / Webhook)?
JWT
Which Endpoint/s?
Any Zoom user with phone number list.
How To Reproduce (If applicable)
Steps to reproduce the behavior:
- I am passing a empty string to try and remove the phone number. I can reproduce in Postman
Screenshots (If applicable)
def delete_listed_phone(id):
settings = {
"phone_numbers": [{"number": ''}]
}
API_PATCH_URL = 'https://api.zoom.us/v2/users/' + id
r = requests.patch(API_PATCH_URL, headers=API_HEADERS,data=json.dumps(settings))
print(str(r.status_code))
if(204 != r.status_code):
print("Exit Code: "+r.text)
I want to remove this field:
Let me know if there is another way to remove the phone number listed.
Thanks!