# Is there any API to disconnect the webinar automatically after completing the scheduled duration?

**URL:** <https://devforum.zoom.us/t/is-there-any-api-to-disconnect-the-webinar-automatically-after-completing-the-scheduled-duration/39609>\
**Category:** API and Webhooks\
**Created:** [January 4, 2021, 6:49am UTC](https://devforum.zoom.us/t/is-there-any-api-to-disconnect-the-webinar-automatically-after-completing-the-scheduled-duration/39609 "2021-01-04T06:49:14Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![sunder.singh179](https://avatars.discourse-cdn.com/v4/letter/s/6bbea6/32.png) [@sunder.singh179](https://devforum.zoom.us/u/sunder.singh179)\
**Post date:** [January 4, 2021, 6:49am UTC](https://devforum.zoom.us/t/is-there-any-api-to-disconnect-the-webinar-automatically-after-completing-the-scheduled-duration/39609/1 "2021-01-04T06:49:14Z")

</div>

**Description**  
We have a requirement where customer want to provide webinar as a service and users whoever need to do a webinar they can sign up to the portal and can schedule a webinar but question here is: how customer can make sure to disconnect their webinar session once they cross the scheduled duration? Because currently in the webinars scheduled using the Zoom Client, webinar can go further even after crossing the scheduled time. Let’s say user scheduled a webinar for only 1 hr duration and during the live session, Zoom neither gives the warning to host that you have finished the scheduled duration, it keeps going and won’t end until host manually ends it but customer want to end the webinar after finishing the scheduled duration?

**Error**  
NA, as customer yet to plan for the development.

---

<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:** [January 4, 2021, 3:31pm UTC](https://devforum.zoom.us/t/is-there-any-api-to-disconnect-the-webinar-automatically-after-completing-the-scheduled-duration/39609/2 "2021-01-04T15:31:32Z")

</div>

Hi @sunder.singh179,

Good question! You’re correct in that a Webinar will not end automatically after the scheduled duration.

However, if you wish to end a Webinar programmatically, you can use this endpoint to end a Webinar at a given time, based off of your desired duration:

> **[Update Webinar Status - Webinars - Zoom API - API Reference](https://marketplace.zoom.us/docs/api-reference/zoom-api/webinars/webinarstatus)**
>
> Update a webinar's status. Use this API to end an ongoing webinar.
> Scopes: webinar:write:admin webinar:write
> 
> Rate Limit Label: Light
> Prerequisites:
> 
> T...

Let me know if this helps!  
Will

---

<div class="post-metadata">

**Author:** ![sunder.singh179](https://avatars.discourse-cdn.com/v4/letter/s/6bbea6/32.png) [@sunder.singh179](https://devforum.zoom.us/u/sunder.singh179)\
**Post date:** [January 5, 2021, 6:49am UTC](https://devforum.zoom.us/t/is-there-any-api-to-disconnect-the-webinar-automatically-after-completing-the-scheduled-duration/39609/3 "2021-01-05T06:49:10Z")

</div>

> [@will.zoom](#):
>
> of your desired duration

Thanks Will, we will inform the customer for the same and let you know further if there any issues.

---

<div class="post-metadata">

**Author:** ![sunder.singh179](https://avatars.discourse-cdn.com/v4/letter/s/6bbea6/32.png) [@sunder.singh179](https://devforum.zoom.us/u/sunder.singh179)\
**Post date:** [January 5, 2021, 7:08am UTC](https://devforum.zoom.us/t/is-there-any-api-to-disconnect-the-webinar-automatically-after-completing-the-scheduled-duration/39609/4 "2021-01-05T07:08:20Z")

</div>

We are planning to provide the Video webinar as a service. We want end user to register on the portal and subscribe for let’s say 2hrs. duration. we will allow user to see the calendar and to choose the available slot based on availability to schedule a webinar. We given a thought to use Zoom Webinar license but the limitation is that if once user schedule the webinar after a week so license will be assigned to his account for that duration and can be taken back after finishing the actual webinar so we can’t reuse the license for another webinar during this time period or other option was to give the user option to be as an alternative host but that would also require Zoom license on his account so we didn’t see it as a feasible option.

Can you please advise the best way to suffice the requirement from the license perspective? As we want to fully utilize the webinar licenses?

---

<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:** [January 5, 2021, 8:45pm UTC](https://devforum.zoom.us/t/is-there-any-api-to-disconnect-the-webinar-automatically-after-completing-the-scheduled-duration/39609/5 "2021-01-05T20:45:50Z")

</div>

Hi @sunder.singh179,

If you wish to manage licensing for users in relation to Webinars, you can do so programmatically. Let me know if this helps:

> [@Assign webinar licence to user via the API or automatically when user is created](https://devforum.zoom.us/t/assign-webinar-licence-to-user-via-the-api-or-automatically-when-user-is-created/34541/2):
>
> Hey @techcityventures, Great question—you can do this programmatically by hitting our PATCH Update User Settings endpoint. You will update their features via their User Settings and setting webinar to true: [PATCH Update User Settings](https://marketplace.zoom.us/docs/api-reference/zoom-api/users/usersettingsupdate) Let me know if this helps! -Will

Let me know if this helps, or if you still have questions!

Best,  
Will

---

<div class="post-metadata">

**Author:** ![sunder.singh179](https://avatars.discourse-cdn.com/v4/letter/s/6bbea6/32.png) [@sunder.singh179](https://devforum.zoom.us/u/sunder.singh179)\
**Post date:** [January 6, 2021, 6:30am UTC](https://devforum.zoom.us/t/is-there-any-api-to-disconnect-the-webinar-automatically-after-completing-the-scheduled-duration/39609/6 "2021-01-06T06:30:56Z")

</div>

Thanks Will for your response and using this license will be assigned to the user. Once user is assigned with the webinar license then let’s say he scheduled the webinar after 1 week. So we can’t unassigned the license till the live webinar completion.Here our requirement is to reuse the same license for other user for different time slot other than first user’s selected slot to provide webinar as a service on customer portal. It would be really appreciate If you can advise, how we can achieve it to gain the maximum use of the same license for multiple webinars for different end users?

Thanks once again.

---

<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:** [January 6, 2021, 10:30pm UTC](https://devforum.zoom.us/t/is-there-any-api-to-disconnect-the-webinar-automatically-after-completing-the-scheduled-duration/39609/7 "2021-01-06T22:30:01Z")

</div>

Hi @sunder.singh179,

Good question. In this case, I would recommend leveraging our Webinar Started and Webinar Completed Webhooks to know when a user’s webinar license is in use:

> **[Webinar Started - Webinar Events - Webhook Reference - API Reference](https://marketplace.zoom.us/docs/api-reference/webhook-reference/webinar-events/webinar-started)**
>
> Webinar Started
> 
> 
> 
> Zoom users with a Webinar Plan have permissions for creating and managing webinars. Zoom Video Webinar allows users to broadcast a Zo...

> **[Webinar Ended - Webinar Events - Webhook Reference - API Reference](https://marketplace.zoom.us/docs/api-reference/webhook-reference/webinar-events/webinar-ended)**
>
> Webinar Ended
> 
> 
> 
> Zoom users with a Webinar Plan have permissions for creating and managing Webinars. Zoom Video Webinar allows users to broadcast a Zoom...

Each of these webhooks are triggered each time a Webhook is started/ended, and the payloads include the host user’s ID, so you can know when webinar licenses are in use.

Let me know if this helps!  
Will

---

<div class="post-metadata">

**Author:** ![sunder.singh179](https://avatars.discourse-cdn.com/v4/letter/s/6bbea6/32.png) [@sunder.singh179](https://devforum.zoom.us/u/sunder.singh179)\
**Post date:** [January 7, 2021, 6:37am UTC](https://devforum.zoom.us/t/is-there-any-api-to-disconnect-the-webinar-automatically-after-completing-the-scheduled-duration/39609/8 "2021-01-07T06:37:52Z")

</div>

Thanks Will for your response.

---

<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:** [January 7, 2021, 10:38pm UTC](https://devforum.zoom.us/t/is-there-any-api-to-disconnect-the-webinar-automatically-after-completing-the-scheduled-duration/39609/9 "2021-01-07T22:38:50Z")

</div>

Hey @sunder.singh179,

I’m glad to hear that @will.zoom answered your questions! If you encounter any further issues or questions, please don’t hesitate to reach out.

Thanks,  
Max

---

<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:** [February 7, 2021, 8:38am UTC](https://devforum.zoom.us/t/is-there-any-api-to-disconnect-the-webinar-automatically-after-completing-the-scheduled-duration/39609/10 "2021-02-07T08:38:54Z")

</div>

Closed on February 7, 2021, 8:38am UTC

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