# PATCH Group Settings returning 300 error: Body should be valid JSON object

**URL:** <https://devforum.zoom.us/t/patch-group-settings-returning-300-error-body-should-be-valid-json-object/99234>\
**Category:** API and Webhooks\
**Tags:** api, video-sdk\
**Created:** [November 29, 2023, 10:46am UTC](https://devforum.zoom.us/t/patch-group-settings-returning-300-error-body-should-be-valid-json-object/99234 "2023-11-29T10:46:03Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![philip.ross](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/philip.ross/32/19627_2.png) [@philip.ross](https://devforum.zoom.us/u/philip.ross)\
**Post date:** [November 29, 2023, 10:46am UTC](https://devforum.zoom.us/t/patch-group-settings-returning-300-error-body-should-be-valid-json-object/99234/1 "2023-11-29T10:46:03Z")

</div>

I’m having an issue trying to update a group settings using the [PATCH API documented here](https://developers.zoom.us/docs/meeting-sdk/apis/#operation/updateGroupSettings)

I use powershell to call these APIs using a S2S OAuth App  
I’ve tried also using Postman, but whatever I try I get an error saying:

“Error 300: Request body should be a valid JSON object”

Using postman, I set the body as raw and selected JSON from the drop down.

I’ve pasted the json into 3 json format checkers online, all of which respond that it’s valid.  
The json has been created by capturing the current settings of an existing group, so should be in the correct schema for passing to the PATCH call.

![image](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/3X/3/8/382082f00bcee5c932b14a362cbaf4dc6510bd17.png)

Does anyone else have a similar issue?  
Any ideas on how to resolve it?

---

<div class="post-metadata">

**Author:** ![philip.ross](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/philip.ross/32/19627_2.png) [@philip.ross](https://devforum.zoom.us/u/philip.ross)\
**Post date:** [November 29, 2023, 4:30pm UTC](https://devforum.zoom.us/t/patch-group-settings-returning-300-error-body-should-be-valid-json-object/99234/2 "2023-11-29T16:30:51Z")

</div>

Okay, I seem to have made some progress on this.

There are a few keys that are returned on the GET call that aren’t supported on the PATCH call schema, and some that return a string value which should be an array of strings.

1. `"recording_storage_location">"allowed_values"` : changed to an array of strings

2. `"in_meeting">"virtual_background_settings"` : removed that array entirely as it’s not in the schema for the PATCH Call

3. `"in_meeting">"live_streaming_service"` : changed into an array of strings (it’s an enum property.)

And I identified that the documentation for `"in_meeting">"request_permission_to_unmute_participants"` appears to be wrong, the value it says in the schema is `"request_permission_to_unmute"`, which doesn’t return an error, but it doesn’t update anything when checking in the UI.

The GET call also returns the property name `"request_permission_to_unmute_participants"`

---

<div class="post-metadata">

**Author:** ![ojus.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/ojus.zoom/32/734_2.png) [@ojus.zoom](https://devforum.zoom.us/u/ojus.zoom)\
**Post date:** [November 29, 2023, 6:10pm UTC](https://devforum.zoom.us/t/patch-group-settings-returning-300-error-body-should-be-valid-json-object/99234/3 "2023-11-29T18:10:32Z")

</div>

@philip.ross are you still facing the issue or were you able to resolve it?

---

<div class="post-metadata">

**Author:** ![philip.ross](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/philip.ross/32/19627_2.png) [@philip.ross](https://devforum.zoom.us/u/philip.ross)\
**Post date:** [November 30, 2023, 11:24am UTC](https://devforum.zoom.us/t/patch-group-settings-returning-300-error-body-should-be-valid-json-object/99234/4 "2023-11-30T11:24:54Z")

</div>

Hi @ojus.zoom, thanks for replying,

I’m no longer getting an error if I manually amend the JSON obtained from a GET call, but I do have some follow up questions:

1. Why does the GET response provide items in the JSON schema that the PATCH call rejects?  
Examples for this are:

> - `"telephony": {"telephony_regions"` array
> 
> - `"in_meeting": {"virtual_background_settings"` array

1. Is it possible to perform some sort of debug call to provide a debug response to Zoom APIs? I was speaking to a friend about this problem and they work on ServiceNow APIs a lot, and asked me if there was a debug option. [ServiceNow documentation is here](https://developer.servicenow.com/blog.do?p=/post/debugging-inbound-rest-calls-and-the-business-rulesacls-that-impact-those-calls/)

2. This stemmed from the need to copy a group and it’s existing settings. Would it be possible to get an API setup specifically for this so we can use that, instead of creating a group, then setting the options based on a GET call response?

3. The [Zoom documentation for updating a group settings](https://developers.zoom.us/docs/meeting-sdk/apis/#operation/updateGroupSettings) has an attribute listed as `"request_permission_to_unmute"`, however when performing a GET call, this attribute is listed as `"request_permission_to_unmute_participants"`.  
When calling `request_permission_to_unmute"` there’s no error thrown, but no changes are seen in the group settings in the UI.  
If I call `request_permission_to_unmute_participants"`, again no error is thrown and the changes _do_ reflect in the UI, suggesting the documentation is wrong?

Looping @elisa.zoom also in here, as I sent her an email on this earlier this week.

Thanks,  
Philip

---

<div class="post-metadata">

**Author:** ![elisa.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/elisa.zoom/32/47836_2.png) [@elisa.zoom](https://devforum.zoom.us/u/elisa.zoom)\
**Post date:** [December 1, 2023, 6:04pm UTC](https://devforum.zoom.us/t/patch-group-settings-returning-300-error-body-should-be-valid-json-object/99234/5 "2023-12-01T18:04:19Z")

</div>

Hi @philip.ross  
Hope you are doing fine!  
I saw your email! Will follow up there to schedule something!

@ojus.zoom I will take care of this issue 🙂

---

<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 2, 2023, 6:05pm UTC](https://devforum.zoom.us/t/patch-group-settings-returning-300-error-body-should-be-valid-json-object/99234/6 "2023-12-02T18:05:03Z")

</div>

Closed on December 2, 2023, 6:05pm UTC

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