Delete listed phone number on user profile via the API

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:

  1. 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:
image

Let me know if there is another way to remove the phone number listed.

Thanks!

Hi @dupination

Thanks for reaching out! I am happy to help here!
I did some testing on my end and I was able to delete the number by passing the entire phone_numbers object with all the fields in the request.

Feel free to try this out and let me know if that helps!
Best,
Elisa