# How to update meeting with PHP?

**URL:** <https://devforum.zoom.us/t/how-to-update-meeting-with-php/21295>\
**Category:** API and Webhooks\
**Created:** [June 13, 2020, 9:27pm UTC](https://devforum.zoom.us/t/how-to-update-meeting-with-php/21295 "2020-06-13T21:27:34Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![reg1](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/reg1/32/10421_2.png) [@reg1](https://devforum.zoom.us/u/reg1)\
**Post date:** [June 13, 2020, 9:27pm UTC](https://devforum.zoom.us/t/how-to-update-meeting-with-php/21295/1 "2020-06-13T21:27:34Z")

</div>

**Description**  
I’m unclear on how to set up PHP to update meeting parameters.

**Error**  
Not an error. Just returns meeting description without changing anything. Do I need to provide _all_ the settings?

**Which App Type)?**  
JWT

**Which Endpoint/s?**  
Knowing the API endpoint/s can help us to identify your issue faster. Please link the ones you need help/have a question with.

“[https://api.zoom.us/v2/meetings/](https://api.zoom.us/v2/meetings/)” . $MeetingID;

**How To Reproduce (If applicable)**  
Steps to reproduce the behavior: Here’s my code:

$arrData = [‘topic’ =\> ‘API changed the topic to this’];  
$jsonData = json\_encode($arrData,true);

```
$URL = "https://api.zoom.us/v2/meetings/" . $MeetingID;
$ch = curl_init($URL);
$customHeaders = array(
    'Authorization:Bearer ' . $gZoomToken,
    'Content-type:application/json,');
curl_setopt($ch, CURLOPT_HTTPHEADER, $customHeaders);
curl_setopt($ch, CURLOPT_ACCCEPT, "application/json");
curl_setopt($ch, CURLOPT_GET, true);
curl_setopt($ch, CURLOPT_CUSTOMREQUEST, "GET");
curl_setopt($ch, CURLOPT_GETFIELDS, $jsonData);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true);

```

//Execute the request.  
$Result = curl\_exec($ch);  
$Response .= “|” . $Result;

**Screenshots (If applicable)**  
If applicable, add screenshots to help explain your problem.

**Additional context**  
I’ve made sure the meeting ID I’m testing with is not my personal meeting ID. I can get the list of meetings okay, so the JWT token seems to be okay.

---

<div class="post-metadata">

**Author:** ![willem](https://avatars.discourse-cdn.com/v4/letter/w/898d66/32.png) [@willem](https://devforum.zoom.us/u/willem)\
**Post date:** [June 14, 2020, 8:36am UTC](https://devforum.zoom.us/t/how-to-update-meeting-with-php/21295/2 "2020-06-14T08:36:59Z")

</div>

Hi,

You need to submit a POST request and not a GET request, specifically a PATCH request as per the documentation: [https://marketplace.zoom.us/docs/api-reference/zoom-api/meetings/meetingupdate](https://marketplace.zoom.us/docs/api-reference/zoom-api/meetings/meetingupdate)

```
    curl_setopt($ch, CURLOPT_CUSTOMREQUEST, "PATCH");

```

Furthermore you need to use CURLOPT\_POSTFIELDS instead of \_GETFIELDS.

Also there is a typo in “CURLOPT\_ACCCEPT” which is not even a valid CURL option I think. Same for CURLOPT\_GET. And there seems to be an extra “,” in your Content-type header at the end.

Willem

---

<div class="post-metadata">

**Author:** ![reg1](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/reg1/32/10421_2.png) [@reg1](https://devforum.zoom.us/u/reg1)\
**Post date:** [June 14, 2020, 3:13pm UTC](https://devforum.zoom.us/t/how-to-update-meeting-with-php/21295/3 "2020-06-14T15:13:31Z")

</div>

Thank you Willem,

It worked! A lot of my dumb mistakes. But where in the documentation does it say that it needs to be POST and PATCH?

Reg

---

<div class="post-metadata">

**Author:** ![willem](https://avatars.discourse-cdn.com/v4/letter/w/898d66/32.png) [@willem](https://devforum.zoom.us/u/willem)\
**Post date:** [June 14, 2020, 3:29pm UTC](https://devforum.zoom.us/t/how-to-update-meeting-with-php/21295/4 "2020-06-14T15:29:34Z")

</div>

Right at the top for instance!

> > > [reg1](https://devforum.zoom.us/u/reg1)  
> > > June 14 |
> > 
> > - | - |
> 
> Thank you Willem,
> 
> It worked! A lot of my dumb mistakes. But where in the documentation does it say that it needs to be POST and PATCH?
> 
> Reg
> 
> * * *
> 
> [Visit Topic](https://devforum.zoom.us/t/how-to-update-meeting-with-php/21295/3) or reply to this email to respond.
> 
> * * *
> 
> #### In Reply To
> 
> > > [willem](https://devforum.zoom.us/u/willem)  
> > > June 14 |
> > 
> > - | - |
> 
> Hi, You need to submit a POST request and not a GET request, specifically a PATCH request as per the documentation: [https://marketplace.zoom.us/docs/api-reference/zoom-api/meetings/meetingupdate](https://marketplace.zoom.us/docs/api-reference/zoom-api/meetings/meetingupdate) curl\_setopt($ch, CURLOPT\_CUSTOMREQUEST, “PATCH”); Furthermore you need to use CURLOPT\_POSTFIELDS i…
> 
> * * *
> 
> [Visit Topic](https://devforum.zoom.us/t/how-to-update-meeting-with-php/21295/3) or reply to this email to respond.
> 
> To unsubscribe from these emails, [click here](https://devforum.zoom.us/email/unsubscribe/4d5461b3929243506fb810e0604db72656ec43dc29c61d394cf40bb9c908fc7b).

[![Infolearn](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/2X/6/640c78348ff1a3454dfc3164280af6914cc2babd.png)](https://infolearn.nl/)

---

<div class="post-metadata">

**Author:** ![reg1](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/reg1/32/10421_2.png) [@reg1](https://devforum.zoom.us/u/reg1)\
**Post date:** [June 14, 2020, 4:16pm UTC](https://devforum.zoom.us/t/how-to-update-meeting-with-php/21295/5 "2020-06-14T16:16:40Z")

</div>

Duh! Too obvious. ☹ Thanks again.

Also, it wasn’t readily apparent that there are examples available in the Test Request at the bottom. That sounds like what I was looking for all along.

I’m still struggling a bit to make it work: it doesn’t seem to like my email address as a user ID and it’s still unclear where to find the id that it wants.

Reg

PS. I know you guys are super busy, so I really appreciate the promptness of your replies.

---

<div class="post-metadata">

**Author:** ![tommy](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/tommy/32/72769_2.png) [@tommy](https://devforum.zoom.us/u/tommy)\
**Post date:** [June 17, 2020, 4:57pm UTC](https://devforum.zoom.us/t/how-to-update-meeting-with-php/21295/8 "2020-06-17T16:57:19Z")

</div>

Hey @reg1,

> [@reg1](#):
>
> I’m still struggling a bit to make it work: it doesn’t seem to like my email address as a user ID and it’s still unclear where to find the id that it wants.

Please provide the request URL, request body JSON, and error message so I can help. 🙂

Also thanks for your help @willem! 🙂

Thanks,  
Tommy

---

<div class="post-metadata">

**Author:** ![reg1](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/reg1/32/10421_2.png) [@reg1](https://devforum.zoom.us/u/reg1)\
**Post date:** [June 18, 2020, 4:33pm UTC](https://devforum.zoom.us/t/how-to-update-meeting-with-php/21295/9 "2020-06-18T16:33:26Z")

</div>

Thanks Tommy,

As you’ve probably gathered from my blunders, even though a long time developer, I’m new to both the Zoom API and Curl, so I’m still working on developing a basic knowledge of how to use this API.

It looks like the \>Send at the bottom of each request type can show the PHP examples I need. But when I click “Get Access Token”, it asks for a client ID. It’s unclear where to find that. (I”m using JWT; I’m guessing that it might be buried somewhere in the token.)

Reg

---

<div class="post-metadata">

**Author:** ![tommy](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/tommy/32/72769_2.png) [@tommy](https://devforum.zoom.us/u/tommy)\
**Post date:** [June 23, 2020, 5:58pm UTC](https://devforum.zoom.us/t/how-to-update-meeting-with-php/21295/10 "2020-06-23T17:58:23Z")

</div>

Hey @reg1,

No worries! 🙂

> [@reg1](#):
>
> It looks like the \>Send at the bottom of each request type can show the PHP examples I need. But when I click “Get Access Token”, it asks for a client ID. It’s unclear where to find that. (I”m using JWT; I’m guessing that it might be buried somewhere in the token.)

For using JWT and the Send a Test Request feature, just past in the JWT Token as the `oauth_access_token` value like so:

 ![Screen Shot 2020-06-23 at 11.58.12 AM](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/2X/8/8758e03522edc93c45f722db8709141d6337160a.png)

Thanks,  
Tommy

---

<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, 10:24pm UTC](https://devforum.zoom.us/t/how-to-update-meeting-with-php/21295/11 "2020-08-21T22:24:03Z")

</div>

Closed on August 21, 2020, 10:24pm UTC


