End Meeting not working

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/”);
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);

 

Response coming to me is-

405 Method Not Allowed

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 https://api.zoom.us/v2/meetings/{meeting_id}/status/. Actually that you should replace the {meeting_id} to the real meeting id.

We are using the same after updating {meeting_id} in URL.

Find below URL :

https://api.zoom.us/v2/meetings/275353260/status/

Try using “application/json” as the content type  and 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.    

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

Hi Stephen, 

Is the error still reoccurring for you?

Thanks

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.

@Stephen_Wong do you resolve the issue posted?

Thank your for your response.

@lperez,

Can you please provide your sample request body ?