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?
How To Reproduce
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 behavior.