# Update a webinar registrant’s status

**URL:** <https://devforum.zoom.us/t/update-a-webinar-registrant-s-status/972>\
**Category:** API and Webhooks\
**Created:** [February 11, 2018, 6:28am UTC](https://devforum.zoom.us/t/update-a-webinar-registrant-s-status/972 "2018-02-11T06:28:07Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Admin1](https://avatars.discourse-cdn.com/v4/letter/a/bbce88/32.png) [@Admin1](https://devforum.zoom.us/u/Admin1)\
**Post date:** [February 11, 2018, 6:28am UTC](https://devforum.zoom.us/t/update-a-webinar-registrant-s-status/972/1 "2018-02-11T06:28:07Z")

</div>

HI&nbsp;

when i using the code below with “POST” method it works fine, but with “PUT”&nbsp; i get&nbsp;&nbsp;[code] =\> 300 [message] =\> Unsupported Content Type )

&nbsp;

$PutFields=array(

“action”=\>‘approve’,

“registrants”=\>array(

“id”=\>$this-\>userzoomid,

“email”=\>$this-\>useremail

),

&nbsp;

);

&nbsp;

&nbsp;

&nbsp;

$PutFields=json\_encode($PutFields);

print\_r($PutFields);

&nbsp;

$url=‘[https://api.zoom.us/v2/webinars/’.$this-\>web.’/registrants/status](https://api.zoom.us/v2/webinars/'.%24this-%3Eweb.'/registrants/status)’;

$ch = curl\_init();

curl\_setopt($ch, CURLOPT\_HTTPHEADER, array(

'Authorization: Bearer '.$this-\>generateJWT().PHP\_EOL.‘accept: application/json Content-Type: application/json’

));&nbsp;

&nbsp;

curl\_setopt($ch, CURLOPT\_URL, $url);

curl\_setopt($ch, CURLOPT\_RETURNTRANSFER,1);&nbsp;

//curl\_setopt($ch, CURLOPT\_PUT, true);

curl\_setopt($ch, CURLOPT\_CUSTOMREQUEST, “PUT”);

curl\_setopt($ch, CURLOPT\_POSTFIELDS,$PutFields);&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;

curl\_setopt($ch, CURLOPT\_SSL\_VERIFYPEER, false);

$response\_updateToapproved = curl\_exec($ch);

&nbsp;

&nbsp;

can’t find what is the problem&nbsp;

&nbsp;

---

<div class="post-metadata">

**Author:** ![harris\_yang](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/harris_yang/32/155_2.png) [@harris\_yang](https://devforum.zoom.us/u/harris_yang)\
**Post date:** [February 11, 2018, 9:45am UTC](https://devforum.zoom.us/t/update-a-webinar-registrant-s-status/972/2 "2018-02-11T09:45:57Z")

</div>

This API should use PUT method.

And I can’t reproduce this issue, please test this API with postman tool.

---

<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:37pm UTC](https://devforum.zoom.us/t/update-a-webinar-registrant-s-status/972/3 "2020-08-21T17:37:19Z")

</div>

Closed on August 21, 2020, 5:37pm UTC


