# Setting Webinar license capacity

**URL:** <https://devforum.zoom.us/t/setting-webinar-license-capacity/48088>\
**Category:** API and Webhooks\
**Created:** [April 15, 2021, 8:58pm UTC](https://devforum.zoom.us/t/setting-webinar-license-capacity/48088 "2021-04-15T20:58:45Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![jferguson](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/jferguson/32/9015_2.png) [@jferguson](https://devforum.zoom.us/u/jferguson)\
**Post date:** [April 15, 2021, 8:58pm UTC](https://devforum.zoom.us/t/setting-webinar-license-capacity/48088/1 "2021-04-15T20:58:46Z")

</div>

## Using this template helps us debug your issues more effectively 🙂

**Description**  
I’m trying to change the Webinar capacity license on a user from 5000 to 1000. I’m using the following Powershell code to try and set this. I’m confident in the $token and $userID values because I’m using those to retrieve the current value just prior to this call. No failure. No text in $result. It simply doesn’t change the license on the user.

$headers=@{}  
$headers.Add(“authorization”, “Bearer $token”)  
$body = ‘{“feature”:{“webinar\_capacity”:1000}}’  
$response = Invoke-RestMethod -Method PATCH -Headers $headers -ContentType ‘application/json’ -Body $body -Uri “[https://api.zoom.us/v2/users/$userID/settings](https://api.zoom.us/v2/users/$userID/settings)”

**Error**  
No error. It just doesn’t change the value

**Which App Type (OAuth / Chatbot / JWT / Webhook)?**  
JWT

**Which Endpoint/s?**  
PATCH [https://api.zoom.us/v2/users](https://api.zoom.us/v2/users)

**How To Reproduce (If applicable)**

**Screenshots (If applicable)**

**Additional context**

---

<div class="post-metadata">

**Author:** ![will.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/will.zoom/32/14417_2.png) [@will.zoom](https://devforum.zoom.us/u/will.zoom)\
**Post date:** [April 16, 2021, 3:15pm UTC](https://devforum.zoom.us/t/setting-webinar-license-capacity/48088/2 "2021-04-16T15:15:02Z")

</div>

Hi @jferguson,

Can you confirm that your account has a Webinar 5000 license available already to apply to the user? If the user is currently on a lower capacity license and you haven’t yet purchased higher capacity licenses, this could be the issue.

Let me know—thanks!  
Will

---

<div class="post-metadata">

**Author:** ![jferguson](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/jferguson/32/9015_2.png) [@jferguson](https://devforum.zoom.us/u/jferguson)\
**Post date:** [April 16, 2021, 3:35pm UTC](https://devforum.zoom.us/t/setting-webinar-license-capacity/48088/3 "2021-04-16T15:35:42Z")

</div>

Yes. The Webinar5000 license is applied to the user. I manually added that in the Zoom portal to start with.

We own one 5000 license that we want to be able to programmatically add and removed from a person based on a schedule. Once I get removing the license working I’ll add the code to set it on someone else. I do want to leave the first person with the 1000 license when they don’t have the 5000.

I am making the assumption that setting that person for 1000 is going to remove the 5000 license. Do I need to do that in two steps? To actually remove the 5000 then add the 1000?

---

<div class="post-metadata">

**Author:** ![will.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/will.zoom/32/14417_2.png) [@will.zoom](https://devforum.zoom.us/u/will.zoom)\
**Post date:** [April 19, 2021, 5:52pm UTC](https://devforum.zoom.us/t/setting-webinar-license-capacity/48088/4 "2021-04-19T17:52:11Z")

</div>

Hi @jferguson,

Thanks for clarifying, I see. This should be possible with just 1 request, by setting the webinar\_capacity field in the manner you’ve referenced in your initial example. Do you have the same issue if you try to make this request in Postman or cURL directly?  
-Will

---

<div class="post-metadata">

**Author:** ![jferguson](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/jferguson/32/9015_2.png) [@jferguson](https://devforum.zoom.us/u/jferguson)\
**Post date:** [April 30, 2021, 8:23pm UTC](https://devforum.zoom.us/t/setting-webinar-license-capacity/48088/5 "2021-04-30T20:23:41Z")

</div>

I attempted the same call using Postman and I get the same results. I even tried changing the capacity to other values such as 500 just to see if that would work. The status I get back in Postman is “204 No Content”.

In general I know things are working because if I change the call from PATCH to GET I do get all of the user settings.

---

<div class="post-metadata">

**Author:** ![jferguson](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/jferguson/32/9015_2.png) [@jferguson](https://devforum.zoom.us/u/jferguson)\
**Post date:** [April 30, 2021, 8:58pm UTC](https://devforum.zoom.us/t/setting-webinar-license-capacity/48088/6 "2021-04-30T20:58:13Z")

</div>

I figured it out. It needed to have “webinar”:true added to the body. Even though it was already set to true.

So the body is now set as: {“feature”:{“webinar”: true,“webinar\_capacity”:5000}}

This lets me set the capacity back and forth.

---

<div class="post-metadata">

**Author:** ![MaxM](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/maxm/32/42303_2.png) [@MaxM](https://devforum.zoom.us/u/MaxM)\
**Post date:** [April 30, 2021, 11:13pm UTC](https://devforum.zoom.us/t/setting-webinar-license-capacity/48088/7 "2021-04-30T23:13:17Z")

</div>

Hey @jferguson,

I’m glad to hear that you resolved your issue! Thanks for sharing your solution. I’ll go ahead and close this topic now but feel free to open a new topic if you encounter any further issues or questions.

Thanks,  
Max

---

<div class="post-metadata">

**Author:** ![MaxM](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/maxm/32/42303_2.png) [@MaxM](https://devforum.zoom.us/u/MaxM)\
**Post date:** [April 30, 2021, 11:13pm UTC](https://devforum.zoom.us/t/setting-webinar-license-capacity/48088/8 "2021-04-30T23:13:19Z")

</div>

Closed on April 30, 2021, 11:13pm UTC


