# How to make session stop automatically?

**URL:** <https://devforum.zoom.us/t/how-to-make-session-stop-automatically/696>\
**Category:** API and Webhooks\
**Created:** [August 30, 2017, 7:22am UTC](https://devforum.zoom.us/t/how-to-make-session-stop-automatically/696 "2017-08-30T07:22:57Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![Shobri\_Panji](https://avatars.discourse-cdn.com/v4/letter/s/838e76/32.png) [@Shobri\_Panji](https://devforum.zoom.us/u/Shobri_Panji)\
**Post date:** [August 30, 2017, 7:22am UTC](https://devforum.zoom.us/t/how-to-make-session-stop-automatically/696/1 "2017-08-30T07:22:57Z")

</div>

&nbsp;

So I have this code to create a session. And expecting that&nbsp;zoom stops the conference with the duration I have set.

&nbsp;

```
$createAMeetingArray = array();
 $createAMeetingArray['host\_id'] = $this-\>host\_id;
 $createAMeetingArray['topic'] = 'test';
 $createAMeetingArray['type'] = 2;
 $createAMeetingArray['option\_jbh'] = 'true';

$createAMeetingArray['duration'] = $\_POST['duration'];
 return $this-\>sendRequest('meeting/create', $createAMeetingArray);

```

&nbsp;

And this is the return: (uuid, id, and host\_id are hidden)

```
Array ( [uuid] =\> xxxx [id] =\> xxxx [host\_id] =\> xxxx [topic] =\> test [password] =\> [h323\_password] =\> [status] =\> 0 [option\_jbh] =\> 1 [option\_start\_type] =\> video [option\_host\_video] =\> 1 [option\_participants\_video] =\> 1 [option\_cn\_meeting] =\> [option\_enforce\_login] =\> [option\_enforce\_login\_domains] =\> [option\_in\_meeting] =\> [option\_audio] =\> both [option\_alternative\_hosts] =\> [option\_use\_pmi] =\> [type] =\> 2 [start\_time] =\> 2017-08-30T07:20:23Z [duration] =\> 10 [timezone] =\> Etc/Greenwich [start\_url] =\> xxxx [join\_url] =\> xxxx [created\_at] =\> 2017-08-30T07:20:23Z )

```

&nbsp;

But when I launched the session and passed 10 minutes, it was still going.

---

<div class="post-metadata">

**Author:** ![AOM\_Carl](https://avatars.discourse-cdn.com/v4/letter/a/4bbf92/32.png) [@AOM\_Carl](https://devforum.zoom.us/u/AOM_Carl)\
**Post date:** [August 30, 2017, 1:02pm UTC](https://devforum.zoom.us/t/how-to-make-session-stop-automatically/696/2 "2017-08-30T13:02:00Z")

</div>

I don’t have an answer for you, Shobri, but I have made this request to support as well.

Meetings with definitive end times are important for many business models that could leverage Zoom.

---

<div class="post-metadata">

**Author:** ![Joshua\_Woodward1](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/joshua_woodward1/32/1480_2.png) [@Joshua\_Woodward1](https://devforum.zoom.us/u/Joshua_Woodward1)\
**Post date:** [August 30, 2017, 5:07pm UTC](https://devforum.zoom.us/t/how-to-make-session-stop-automatically/696/3 "2017-08-30T17:07:18Z")

</div>

The duration parameter is used to determine an “end time”, for calendar purposes, to give participants an idea of how long the meeting will be, it’s not a hard stop. Like most meeting invites, at least ones I get, ones that are sent for 30 mins, almost always go over.

&nbsp;

You can end a meeting via the API&nbsp;[https://zoom.github.io/api/#end-a-meeting](https://zoom.github.io/api/#end-a-meeting)

---

<div class="post-metadata">

**Author:** ![AOM\_Carl](https://avatars.discourse-cdn.com/v4/letter/a/4bbf92/32.png) [@AOM\_Carl](https://devforum.zoom.us/u/AOM_Carl)\
**Post date:** [August 30, 2017, 6:18pm UTC](https://devforum.zoom.us/t/how-to-make-session-stop-automatically/696/4 "2017-08-30T18:18:59Z")

</div>

Hi Joshua,

I think places like schools would appreciate meetings that ended on a schedule. I know for our purposes, limiting a meeting’s duration would help immensely with teacher and student tardiness and overstaying.

Perhaps it could be a setting to enable or disable?

---

<div class="post-metadata">

**Author:** ![Shobri\_Panji](https://avatars.discourse-cdn.com/v4/letter/s/838e76/32.png) [@Shobri\_Panji](https://devforum.zoom.us/u/Shobri_Panji)\
**Post date:** [August 31, 2017, 3:10am UTC](https://devforum.zoom.us/t/how-to-make-session-stop-automatically/696/5 "2017-08-31T03:10:33Z")

</div>

it will be simpler if I can have my meeting ended based on the duration set,&nbsp;&nbsp;just like the auto end meeting if i’m using a zoom trial account. since the app we’re trying to make is likely to have multiple host id running simultaneous meeting session, and we want to avoid running a background process just to monitor running&nbsp;meeting and then try to end it.

---

<div class="post-metadata">

**Author:** ![Joshua\_Woodward1](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/joshua_woodward1/32/1480_2.png) [@Joshua\_Woodward1](https://devforum.zoom.us/u/Joshua_Woodward1)\
**Post date:** [August 31, 2017, 5:40pm UTC](https://devforum.zoom.us/t/how-to-make-session-stop-automatically/696/6 "2017-08-31T17:40:12Z")

</div>

Hi Carl & Shobri,

&nbsp;

Thanks for the feedback and we will review this feature request.

Shobri, the free trail is the only hard stop and that is based on account type, not any setting on the user or account.

---

<div class="post-metadata">

**Author:** ![Rohan\_Jalil](https://avatars.discourse-cdn.com/v4/letter/r/58956e/32.png) [@Rohan\_Jalil](https://devforum.zoom.us/u/Rohan_Jalil)\
**Post date:** [December 18, 2017, 8:02am UTC](https://devforum.zoom.us/t/how-to-make-session-stop-automatically/696/7 "2017-12-18T08:02:10Z")

</div>

Has this been implemented? I need to make a meeting of 20 minutes and then timeout the meeting.

---

<div class="post-metadata">

**Author:** ![Joshua\_Woodward1](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/joshua_woodward1/32/1480_2.png) [@Joshua\_Woodward1](https://devforum.zoom.us/u/Joshua_Woodward1)\
**Post date:** [December 18, 2017, 4:23pm UTC](https://devforum.zoom.us/t/how-to-make-session-stop-automatically/696/8 "2017-12-18T16:23:51Z")

</div>

The only way to this is through your code using&nbsp;[https://zoom.github.io/api/#update-a-meetings-status](https://zoom.github.io/api/#update-a-meetings-status)

No way to set it ahead of time

---

<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, 5:17pm UTC](https://devforum.zoom.us/t/how-to-make-session-stop-automatically/696/9 "2020-08-21T17:17:49Z")

</div>


