# Cant update SubAccount settings via API

**URL:** <https://devforum.zoom.us/t/cant-update-subaccount-settings-via-api/12380>\
**Category:** API and Webhooks\
**Created:** [April 9, 2020, 2:34pm UTC](https://devforum.zoom.us/t/cant-update-subaccount-settings-via-api/12380 "2020-04-09T14:34:19Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![yaegerc](https://avatars.discourse-cdn.com/v4/letter/y/df705f/32.png) [@yaegerc](https://devforum.zoom.us/u/yaegerc)\
**Post date:** [April 9, 2020, 2:34pm UTC](https://devforum.zoom.us/t/cant-update-subaccount-settings-via-api/12380/1 "2020-04-09T14:34:19Z")

</div>

**Description**  
A clear and concise description of what the question is.

I have over 200 sub accounts and I would like to apply some default security settings that our team has decided on to each one of them. I use the “update settings” API to make an update and I get a 204 response code, however, the settings are not changed. I am just trying to update one setting as a test right now. Here is the powershell code I am using:

$headers=@{}  
$headers.Add(“content-type”, “application/json”)  
$headers.Add(“authorization”, “Bearer $JWT”)  
response = Invoke-WebRequest -Uri "https://api.zoom.us/v2/accounts/($account.id)/settings" -Method PATCH -Headers $headers -ContentType ‘application/json’ -Body ‘{“schedule\_meting”:{“host\_video”:true}}’

**Error**  
The full error message or issue you are running into.  
No error, it just doesn’t update.

**Which App Type (OAuth / Chatbot / JWT / Webhook)?**  
Knowing the endpoint/s can help us to identify your issue faster. Please link the ones you need help/have a question with.  
JWT

**Which Endpoint/s?**  
Knowing the API endpoint/s can help us to identify your issue faster. Please link the ones you need help/have a question with.  
I am using the update settings API on a test sub account we just created.

**How To Reproduce (If applicable)**  
Steps to reproduce the behavior:

1. Request URL / Headers (without credentials) / Body
2. See error

**Screenshots (If applicable)**  
If applicable, add screenshots to help explain your problem.

**Additional context**  
Add any other context about the problem here.

---

<div class="post-metadata">

**Author:** ![tommy](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/tommy/32/72769_2.png) [@tommy](https://devforum.zoom.us/u/tommy)\
**Post date:** [April 10, 2020, 7:42pm UTC](https://devforum.zoom.us/t/cant-update-subaccount-settings-via-api/12380/2 "2020-04-10T19:42:59Z")

</div>

Hey @yaegerc,

So this [setting](https://zoom.us/account/setting) is not switching to on when you make the request?

 ![Screen Shot 2020-04-10 at 1.42.22 PM](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/2X/b/be061f8e1efa0a3b5ec3f5f81c5612018843659b.png)

Thanks,  
Tommy

---

<div class="post-metadata">

**Author:** ![yaegerc](https://avatars.discourse-cdn.com/v4/letter/y/df705f/32.png) [@yaegerc](https://devforum.zoom.us/u/yaegerc)\
**Post date:** [April 13, 2020, 1:20pm UTC](https://devforum.zoom.us/t/cant-update-subaccount-settings-via-api/12380/3 "2020-04-13T13:20:15Z")

</div>

Correct. None of the settings I try to change will do anything. I make the request, it responds with 204 meaning its made the updates, but then you go and check and no changes have been made.

---

<div class="post-metadata">

**Author:** ![tommy](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/tommy/32/72769_2.png) [@tommy](https://devforum.zoom.us/u/tommy)\
**Post date:** [April 14, 2020, 6:59am UTC](https://devforum.zoom.us/t/cant-update-subaccount-settings-via-api/12380/4 "2020-04-14T06:59:07Z")

</div>

Hey @yaegerc,

Not sure if this is a typo in your post or code but I noticed:

> [@yaegerc](#):
>
> PATCH -Headers $headers -ContentType ‘application/json’ -Body ‘{“schedule\_meting”:{“host\_video”:true}}’

`meeting` is spelled wrong. It should be this:

```auto
PATCH -Headers $headers -ContentType 'application/json' -Body '{"schedule_meeting":{"host_video":true}}'

```

Thanks,  
Tommy

---

<div class="post-metadata">

**Author:** ![yaegerc](https://avatars.discourse-cdn.com/v4/letter/y/df705f/32.png) [@yaegerc](https://devforum.zoom.us/u/yaegerc)\
**Post date:** [April 14, 2020, 1:24pm UTC](https://devforum.zoom.us/t/cant-update-subaccount-settings-via-api/12380/5 "2020-04-14T13:24:20Z")

</div>

Oh that’s interesting. I copied that from the code generation section of the Zoom API documentation. You guys might want to get that updated so it doesn’t trip anyone else up.

The page I am referring to is: [https://marketplace.zoom.us/docs/api-reference/zoom-api/accounts/accountsettingsupdate](https://marketplace.zoom.us/docs/api-reference/zoom-api/accounts/accountsettingsupdate)

and to see the misspelling enter something for your variables and pick PowerShell as the language under code generation.

---

<div class="post-metadata">

**Author:** ![shrijana.g](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/shrijana.g/32/605_2.png) [@shrijana.g](https://devforum.zoom.us/u/shrijana.g)\
**Post date:** [April 15, 2020, 1:41am UTC](https://devforum.zoom.us/t/cant-update-subaccount-settings-via-api/12380/6 "2020-04-15T01:41:31Z")

</div>

> [@tommy](#):
>
> schedule\_meting

Hi @yaegerc,

Thanks for letting us know about this issue and thanks @tommy for pointing it out. I have fixed it in the API reference. Really appreciate your feedback.

Thanks again,  
Shrijana

---

<div class="post-metadata">

**Author:** ![DeveloperBot](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/developerbot/32/12632_2.png) [@DeveloperBot](https://devforum.zoom.us/u/DeveloperBot)\
**Post date:** [August 21, 2020, 8:25pm UTC](https://devforum.zoom.us/t/cant-update-subaccount-settings-via-api/12380/7 "2020-08-21T20:25:43Z")

</div>

Closed on August 21, 2020, 8:25pm UTC


