# Create Meeting with duration

**URL:** <https://devforum.zoom.us/t/create-meeting-with-duration/39396>\
**Category:** API and Webhooks\
**Created:** [December 30, 2020, 2:06am UTC](https://devforum.zoom.us/t/create-meeting-with-duration/39396 "2020-12-30T02:06:30Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![mohanifahns](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/mohanifahns/32/20690_2.png) [@mohanifahns](https://devforum.zoom.us/u/mohanifahns)\
**Post date:** [December 30, 2020, 2:06am UTC](https://devforum.zoom.us/t/create-meeting-with-duration/39396/1 "2020-12-30T02:06:31Z")

</div>

Iam trying to create meeting using POST /users/{userId}/meetings  
with duration parameter.

as written in documentation “Meeting duration (minutes). Used for scheduled meetings only”  
so i set up the type parameter with 2.

here is my full parameter when create meeting :  
{  
“userId”: “my\_user\_id”,  
“topic”: “DNA Zoom Meeting”,  
“type”: 2,  
“start\_time”: “2020-12-17T08:50:00”,  
“duration”: 2,  
“schedule\_for”: “my\_email”,  
“timezone”: “Asia/Jakarta”,  
“password”: “123”,  
“agenda”: “DNA Zoom Meeting For Testing”,  
“settings”: {  
“host\_video”: true,  
“participant\_video”: true,  
“cn\_meeting”: false,  
“in\_meeting”: false,  
“waiting\_room”: false,  
“join\_before\_host”: true,  
“mute\_upon\_entry”: true,  
“watermark”: false,  
“use\_pmi”: false,  
“approval\_type”: 1,  
“registration\_type”: 2,  
“audio”: “both”,  
“auto\_recording”: “none”,  
“registrants\_email\_notification”: true  
}  
}

the response is success but when i am in the zoom meeting there is no countdown and the meeting still running even after 2 minutes pass.

is there any missing parameter that i need to setup for create duration meeting in zoom with API ?

---

<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:** [December 30, 2020, 3:51pm UTC](https://devforum.zoom.us/t/create-meeting-with-duration/39396/2 "2020-12-30T15:51:05Z")

</div>

Hi @mohanifahns,

Thanks for reaching out about this, and good question.

To clarify, the `duration` field is intended to reflect the scheduled duration of the meeting—however, the meeting will not automatically end after 2 minutes have passed, and this is expected behavior.

If you wish to end meetings programmatically after a certain amount of time, you might consider using our Update Meeting Status to update the meeting to “ended”:

> **[Update Meeting Status - Meetings - Zoom API - API Reference](https://marketplace.zoom.us/docs/api-reference/zoom-api/meetings/meetingstatus)**
>
> Update the status of a meeting.
> Scopes: meeting:write:admin meeting:write
> Rate Limit Label: Light
> 
> Authorization
> 
> Flow: authorizationCode
> 
> Authorizatio...

I hope this helps!

Best,  
Will

---

<div class="post-metadata">

**Author:** ![mohanifahns](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/mohanifahns/32/20690_2.png) [@mohanifahns](https://devforum.zoom.us/u/mohanifahns)\
**Post date:** [January 4, 2021, 1:13am UTC](https://devforum.zoom.us/t/create-meeting-with-duration/39396/3 "2021-01-04T01:13:12Z")

</div>

> [@will.zoom](#):
>
> 2 minutes have passed, and this

if i am using update meeting status to update the meeting to “ended” there is no countdown in app and the alert message tell the meeting ended by someone else right ?

is there any chance api can create meeting that have countdown and automatic ended like iam using free zoom apps 45 minutes.

---

<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:25pm UTC](https://devforum.zoom.us/t/create-meeting-with-duration/39396/4 "2021-01-04T15:25:05Z")

</div>

Hi @mohanifahns,

> if i am using update meeting status to update the meeting to “ended” there is no countdown in app and the alert message tell the meeting ended by someone else right ?

That’s correct—the meeting will end without a warning (though this is a good suggestion).

> is there any chance api can create meeting that have countdown and automatic ended like iam using free zoom apps 45 minutes.

This is a good suggestion, though it’s not something we currently support. However, I can certainly appreciate your use case, and would encourage you to submit this as a feature request here: #Feature Requests

Thanks,  
Will

---

<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 4, 2021, 1:25am UTC](https://devforum.zoom.us/t/create-meeting-with-duration/39396/5 "2021-02-04T01:25:11Z")

</div>

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