# End Meeting not working

**URL:** <https://devforum.zoom.us/t/end-meeting-not-working/1115>\
**Category:** API and Webhooks\
**Created:** [March 22, 2018, 11:52am UTC](https://devforum.zoom.us/t/end-meeting-not-working/1115 "2018-03-22T11:52:13Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ramsey\_Saffouri](https://avatars.discourse-cdn.com/v4/letter/r/b5ac83/32.png) [@Ramsey\_Saffouri](https://devforum.zoom.us/u/Ramsey_Saffouri)\
**Post date:** [March 22, 2018, 11:52am UTC](https://devforum.zoom.us/t/end-meeting-not-working/1115/1 "2018-03-22T11:52:13Z")

</div>

I want to end my meeting through API call but its not working, i am using following data-

$ch = curl\_init();

curl\_setopt($ch, CURLOPT\_URL, “[https://api.zoom.us/v2/meetings/{meeting\_id}/status/](https://api.zoom.us/v2/meetings/%7Bmeeting_id%7D/status/)”);  
curl\_setopt($ch, CURLOPT\_RETURNTRANSFER, 1);  
curl\_setopt($ch, CURLOPT\_POSTFIELDS, $postFields);  
curl\_setopt($ch, CURLOPT\_POST, 1);  
/\* curl\_setopt($ch, CURLOPT\_HTTPHEADER, array(  
‘Authorization: Bearer’ . $this-\>generateJWT()  
)); \*/

$headers = array();  
$headers = “Content-Type: application/x-www-form-urlencoded”;  
$headers = ‘Authorization: Bearer’ . $this-\>generateJWT();

curl\_setopt($ch, CURLOPT\_HTTPHEADER, $headers);

$result = curl\_exec($ch);

&nbsp;

Response coming to me is-

405 Method Not Allowed

---

<div class="post-metadata">

**Author:** ![White\_Tao](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/white_tao/32/1023_2.png) [@White\_Tao](https://devforum.zoom.us/u/White_Tao)\
**Post date:** [March 23, 2018, 9:21am UTC](https://devforum.zoom.us/t/end-meeting-not-working/1115/2 "2018-03-23T09:21:45Z")

</div>

Hi, I want to make sure that when you call the api do you input the meeting id?

I see that you call the url&nbsp;[https://api.zoom.us/v2/meetings/{meeting\_id}/status/](https://api.zoom.us/v2/meetings/%7Bmeeting_id%7D/status/). Actually that you should replace the {meeting\_id} to the real meeting id.

---

<div class="post-metadata">

**Author:** ![Ramsey\_Saffouri](https://avatars.discourse-cdn.com/v4/letter/r/b5ac83/32.png) [@Ramsey\_Saffouri](https://devforum.zoom.us/u/Ramsey_Saffouri)\
**Post date:** [April 6, 2018, 6:28am UTC](https://devforum.zoom.us/t/end-meeting-not-working/1115/3 "2018-04-06T06:28:15Z")

</div>

We are using the same after updating {meeting\_id} in URL.

Find below URL :

[https://api.zoom.us/v2/meetings/](https://api.zoom.us/v2/meetings/)275353260/status/

---

<div class="post-metadata">

**Author:** ![Stephen\_Wong](https://avatars.discourse-cdn.com/v4/letter/s/ba9def/32.png) [@Stephen\_Wong](https://devforum.zoom.us/u/Stephen_Wong)\
**Post date:** [July 10, 2018, 6:25pm UTC](https://devforum.zoom.us/t/end-meeting-not-working/1115/4 "2018-07-10T18:25:25Z")

</div>

Try using “application/json” as the content type&nbsp; and supplying “{ ‘action’: ‘end’}” as the body. &nbsp; This returns a 204 code (successful operation with no return content) but, for me at least, doesn’t seem to actually end the meeting. &nbsp; &nbsp;

If anyone knows how to actually end a meeting through the API, please let me know!

---

<div class="post-metadata">

**Author:** ![michael\_p.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/michael_p.zoom/32/18105_2.png) [@michael\_p.zoom](https://devforum.zoom.us/u/michael_p.zoom)\
**Post date:** [July 20, 2018, 4:44pm UTC](https://devforum.zoom.us/t/end-meeting-not-working/1115/5 "2018-07-20T16:44:16Z")

</div>

Hi Stephen,&nbsp;

Is the error still reoccurring for you?

Thanks

---

<div class="post-metadata">

**Author:** ![lperez](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/lperez/32/1079_2.png) [@lperez](https://devforum.zoom.us/u/lperez)\
**Post date:** [June 13, 2019, 9:20pm UTC](https://devforum.zoom.us/t/end-meeting-not-working/1115/6 "2019-06-13T21:20:52Z")

</div>

Hi Team,

I am still facing the issue using Rest API. After supplying “{ ‘action’: ‘end’}” as the body. This returns a 204 code (successful operation with no return content) but, for me at least, doesn’t seem to actually end the meeting. doesn’t seem to actually end the meeting.

When I tried begin other meeting with the same host, return the error “Something went worng - Error code: 3005”

Please help to resolve this issue.

---

<div class="post-metadata">

**Author:** ![lperez](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/lperez/32/1079_2.png) [@lperez](https://devforum.zoom.us/u/lperez)\
**Post date:** [June 13, 2019, 9:22pm UTC](https://devforum.zoom.us/t/end-meeting-not-working/1115/7 "2019-06-13T21:22:10Z")

</div>

@Stephen_Wong do you resolve the issue posted?

Thank your for your response.

---

<div class="post-metadata">

**Author:** ![ojus.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/ojus.zoom/32/734_2.png) [@ojus.zoom](https://devforum.zoom.us/u/ojus.zoom)\
**Post date:** [June 13, 2019, 10:58pm UTC](https://devforum.zoom.us/t/end-meeting-not-working/1115/8 "2019-06-13T22:58:33Z")

</div>

@lperez,

Can you please provide your sample request body ?

---

<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, 6:26pm UTC](https://devforum.zoom.us/t/end-meeting-not-working/1115/9 "2020-08-21T18:26:40Z")

</div>

Closed on August 21, 2020, 6:26pm UTC


