# Update a User API Method

**URL:** <https://devforum.zoom.us/t/update-a-user-api-method/36948>\
**Category:** API and Webhooks\
**Created:** [November 25, 2020, 9:56pm UTC](https://devforum.zoom.us/t/update-a-user-api-method/36948 "2020-11-25T21:56:35Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![conor.oshea](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/conor.oshea/32/38331_2.png) [@conor.oshea](https://devforum.zoom.us/u/conor.oshea)\
**Post date:** [November 25, 2020, 9:56pm UTC](https://devforum.zoom.us/t/update-a-user-api-method/36948/1 "2020-11-25T21:56:36Z")

</div>

**Description**  
When sending an HTTP Patch to update an existing user the empty string is accepted but does not change the value on the back end to an empty string.

**Error**  
HTTP Response is 204 so it it appears the operation was successful just without confirmation.

**Which App Type (OAuth / Chatbot / JWT / Webhook)?**  
I am using Python Requests with JWT auth.

**Which Endpoint/s?**

> **[Update a User - Users - Zoom API - API Reference](https://marketplace.zoom.us/docs/api-reference/zoom-api/users/userupdate)**
>
> Update information on a user's Zoom profile.
> Scopes: user:write:admin user:write
> 
> Rate Limit Label: Light
> 
> Authorization
> 
> Flow: authorizationCode
> 
> Auth...

**How To Reproduce**  
Steps to reproduce the behavior:

1. Set your requests payload to a field of your choice and the associated value to an empty string:

- json\_payload = {“dept”: “”}

1. Create a requests patch method and set the payload to json:

- r = re.patch(zoom\_api\_url + zoom\_user\_patch\_url, headers = headers, json = json\_payload)

1. Send your request and then check if the existing value was changed to an empty string. This fails every time I’ve tried. Note that you’ll need to set the initial value to something other than an empty string first to reproduce this behavior.

---

<div class="post-metadata">

**Author:** ![yosuke.sawamura](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/yosuke.sawamura/32/1484_2.png) [@yosuke.sawamura](https://devforum.zoom.us/u/yosuke.sawamura)\
**Post date:** [November 26, 2020, 1:08am UTC](https://devforum.zoom.us/t/update-a-user-api-method/36948/2 "2020-11-26T01:08:28Z")

</div>

Hi conor.oshea,

Thank you for submitting to our forum.  
Our current design does not support blanking out dept fields, although will are preparing to support blanking out the fields except of first\_name, last\_name.  
At the moment we do not have the exact timeline so please subscribe and follow our [Changlog](https://marketplace.zoom.us/docs/changelog) for further enhancement.  
(ZOOM-187104)

Regards,  
Yosuke

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/3X/6/1/614bdd549b610bbaa46ff934617683a02bdaa03c.png) [@system](https://devforum.zoom.us/u/system)\
**Post date:** [December 26, 2020, 11:08am UTC](https://devforum.zoom.us/t/update-a-user-api-method/36948/3 "2020-12-26T11:08:30Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
