# Error when trying to update users

**URL:** <https://devforum.zoom.us/t/error-when-trying-to-update-users/70996>\
**Category:** API and Webhooks\
**Created:** [June 23, 2022, 9:17am UTC](https://devforum.zoom.us/t/error-when-trying-to-update-users/70996 "2022-06-23T09:17:33Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Maya\_C4V](https://avatars.discourse-cdn.com/v4/letter/m/dec6dc/32.png) [@Maya\_C4V](https://devforum.zoom.us/u/Maya_C4V)\
**Post date:** [June 23, 2022, 9:17am UTC](https://devforum.zoom.us/t/error-when-trying-to-update-users/70996/1 "2022-06-23T09:17:33Z")

</div>

**Description**  
When I try to do a partitial patch to update a user’s profile I get an error.

**Error?**  
It says that the JSON Object I sent with the request is not a valid JSON object.  
“\<?xml version="1.0" encoding="UTF-8" standalone="yes"?\>`300`Request Body should be a valid JSON object.”

with JSON: {“custom\_attributes”:{“value”:“value”,“name”:“name”,“key”:“key”},“dept”:“dept”}

HTTP Error Code is 400

Method is PATCH

**API Endpoint/s?**  
[https://api.zoom.us/v2/accounts/{accountId}/users/{userId}](https://api.zoom.us/v2/accounts/%7BaccountId%7D/users/%7BuserId%7D)

**How To Reproduce**  
See above.

---

<div class="post-metadata">

**Author:** ![gianni.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/gianni.zoom/32/32523_2.png) [@gianni.zoom](https://devforum.zoom.us/u/gianni.zoom)\
**Post date:** [June 23, 2022, 2:03pm UTC](https://devforum.zoom.us/t/error-when-trying-to-update-users/70996/2 "2022-06-23T14:03:52Z")

</div>

Hi @Maya_C4V ,

This should be an array of objects:  
 ![image](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/3X/c/c/cc1d475610b1da5ae231b3712708224a89d7f31b.png)

> **[Zoom Meeting Master Account API](https://marketplace.zoom.us/docs/api-reference/zoom-api/ma/)**
>
> The Zoom Meeting Master Account (MA)....

Hope it helps!

---

<div class="post-metadata">

**Author:** ![Maya\_C4V](https://avatars.discourse-cdn.com/v4/letter/m/dec6dc/32.png) [@Maya\_C4V](https://devforum.zoom.us/u/Maya_C4V)\
**Post date:** [June 24, 2022, 7:40am UTC](https://devforum.zoom.us/t/error-when-trying-to-update-users/70996/3 "2022-06-24T07:40:49Z")

</div>

@gianni.zoom

Yes that helps.  
Thanks.

---

<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:** [July 24, 2022, 5:40pm UTC](https://devforum.zoom.us/t/error-when-trying-to-update-users/70996/4 "2022-07-24T17:40:53Z")

</div>

Closed on July 24, 2022, 5:40pm UTC

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