Description:
When sending an HTTPS Patch using REST API 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
Response is 204 so it it appears the operation was successful just without confirmation.
Which App Type (OAuth / Chatbot / JWT / Webhook)?
I am using NodeJS Requests with JWT auth.
Which Endpoint/s?
How To Reproduce (If applicable)
Steps to reproduce the behavior:
- Set your requests payload to a field of your choice and the associated value to an empty string:
*json_payload = {“dept”: “”}
- 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)
- 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 behaviour.
Additional context
Please suggest how can an attribute value be removed or set to null for a user.