# Update a meeting registrant’s status

**URL:** <https://devforum.zoom.us/t/update-a-meeting-registrant-s-status/26303>\
**Category:** API and Webhooks\
**Created:** [August 5, 2020, 11:52am UTC](https://devforum.zoom.us/t/update-a-meeting-registrant-s-status/26303 "2020-08-05T11:52:53Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![yonksdsp](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/yonksdsp/32/3891_2.png) [@yonksdsp](https://devforum.zoom.us/u/yonksdsp)\
**Post date:** [August 5, 2020, 11:52am UTC](https://devforum.zoom.us/t/update-a-meeting-registrant-s-status/26303/1 "2020-08-05T11:52:54Z")

</div>

**Description**  
I send a request to update the registrant status, but I get an error of 300

**Error**  
The full error message or issue you are running into.

**Which App Type (OAuth / Chatbot / JWT / Webhook)?**  
OAuth

**Which Endpoint/s?**  
Khttps://marketplace.zoom.us/docs/api-reference/zoom-api/meetings/meetingregistrantstatus

**How To Reproduce (If applicable)**

function put\_registrants\_status($meetingId,$mail, $id){

```
$body=array(
    "action"=> "approve",
    "registrants"=> array(
        array(
            "email"=>$mail,
            "id"=> $id
        )
    )
);
$url="https://api.zoom.us/v2/meetings/".$meetingId."/registrants/status";
$arParam=get_zoom_param();
$headrs = array();
$headrs[] = 'Content-type: application/json';
$headrs[] = 'Authorization: Bearer '.$arParam["ACCESS_TOKEN"];

$crl = curl_init($url);
curl_setopt($crl, CURLOPT_HTTPHEADER,$headrs);
curl_setopt($crl, CURLOPT_POSTFIELDS, json_encode($body));
curl_setopt($crl, CURLOPT_RETURNTRANSFER, true);
curl_setopt($crl, CURLOPT_SSL_VERIFYPEER, false);
curl_setopt($crl, CURLOPT_PUT,true);
$rest = curl_exec($crl);
$rest=json_decode($rest,true);
return $rest;

```

}

---

<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:** [August 6, 2020, 9:11pm UTC](https://devforum.zoom.us/t/update-a-meeting-registrant-s-status/26303/2 "2020-08-06T21:11:12Z")

</div>

Hey @yonksdsp,

Please share the full error message from Zoom, and the request body JSON you are sending.

Thanks,  
Tommy

---

<div class="post-metadata">

**Author:** ![yonksdsp](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/yonksdsp/32/3891_2.png) [@yonksdsp](https://devforum.zoom.us/u/yonksdsp)\
**Post date:** [August 7, 2020, 7:55am UTC](https://devforum.zoom.us/t/update-a-meeting-registrant-s-status/26303/3 "2020-08-07T07:55:39Z")

</div>

Hey.

body JSON:  
{“action”:“approve”,“registrants”:[{“[email":"leonov\_andrew@mail.ru](mailto:email%22:%22leonov_andrew@mail.ru)”,“id”:“HAqU9JOmTga5FLGdneCluw”}]}

error:

(  
[code] =\> 300  
[message] =\> Request Body should be a valid JSON object.  
)

---

<div class="post-metadata">

**Author:** ![pritam](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/pritam/32/11532_2.png) [@pritam](https://devforum.zoom.us/u/pritam)\
**Post date:** [August 7, 2020, 8:03am UTC](https://devforum.zoom.us/t/update-a-meeting-registrant-s-status/26303/4 "2020-08-07T08:03:55Z")

</div>

Hey,

This maybe a formatting issue. You are using the the Unicode quotes (which have separate left adn right  
quotes), when you should be using the ASCII quotation marks (a single quotation mark).

(Just a suggestion, because I had a similar problem with the apostrophe sign)

---

<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:** [August 10, 2020, 6:59am UTC](https://devforum.zoom.us/t/update-a-meeting-registrant-s-status/26303/5 "2020-08-10T06:59:57Z")

</div>

Thanks for your suggestions @pritam! 🙂

@yonksdsp, does the following work for you?

```json
{
  "action": "approve",
  "registrants": [{
    "email": "leonov_andrew @mail.ru",
    "id": "HAqU9JOmTga5FLGdneCluw"
  }]
}

```

Thanks,  
Tommy

---

<div class="post-metadata">

**Author:** ![yonksdsp](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/yonksdsp/32/3891_2.png) [@yonksdsp](https://devforum.zoom.us/u/yonksdsp)\
**Post date:** [August 12, 2020, 9:18am UTC](https://devforum.zoom.us/t/update-a-meeting-registrant-s-status/26303/6 "2020-08-12T09:18:57Z")

</div>

No, it didn’t help([quote=“tommy, post:5, topic:26303, full:true”]  
Thanks for your suggestions @pritam! 🙂

@yonksdsp, does the following work for you?

```json
{
  "action": "approve",
  "registrants": [{
    "email": "leonov_andrew @mail.ru",
    "id": "HAqU9JOmTga5FLGdneCluw"
  }]
}

```

Thanks,  
Tommy  
[/quote]

No, it didn’t help(

---

<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:** [August 12, 2020, 8:30pm UTC](https://devforum.zoom.us/t/update-a-meeting-registrant-s-status/26303/7 "2020-08-12T20:30:24Z")

</div>

Hey @yonksdsp,

Apologies, can you try this:

```json
{
  "action": "approve",
  "registrants": [{
    "email": "leonov_andrew@mail.ru",
    "id": "HAqU9JOmTga5FLGdneCluw"
  }]
}

```

Thanks,  
Tommy

---

<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:** [August 22, 2020, 8:30pm UTC](https://devforum.zoom.us/t/update-a-meeting-registrant-s-status/26303/8 "2020-08-22T20:30:35Z")

</div>

Closed on August 22, 2020, 8:30pm UTC

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