# API update registrant not working

**URL:** <https://devforum.zoom.us/t/api-update-registrant-not-working/60557>\
**Category:** API and Webhooks\
**Created:** [November 22, 2021, 4:26pm UTC](https://devforum.zoom.us/t/api-update-registrant-not-working/60557 "2021-11-22T16:26:06Z")\
**Posts on this page:** 13\
**Page:** 1

<div class="post-metadata">

**Author:** ![kurban](https://avatars.discourse-cdn.com/v4/letter/k/ed8c4c/32.png) [@kurban](https://devforum.zoom.us/u/kurban)\
**Post date:** [November 22, 2021, 4:26pm UTC](https://devforum.zoom.us/t/api-update-registrant-not-working/60557/1 "2021-11-22T16:26:07Z")

</div>

The API update registrant to set a registrant to approved is not working. I have seen similar posts in this forum, but they seem to be related to the occurrence\_id param not being included. I’m currently testing this in Postman as follows:

PUT  
[https://api.zoom.us/v2/meetings/[REDACTED]/registrants/status/?occurrenceid=[REDACTED]](https://api.zoom.us/v2/meetings/%5BREDACTED%5D/registrants/status/?occurrenceid=%5BREDACTED%5D)

Authorization: Bearer {My JWT token}  
Content-Type: application/json

Body:  
{  
“action”: “approve”,  
“registrants”: [  
{  
“id”: “JtuCwt0BTd6llH9zXcuvQA”,  
“email”: “{user email}”  
}  
]  
}

This API call returns 204 No Content, but the status of the registrant does not change.

Any help would be appreciated.

---

<div class="post-metadata">

**Author:** ![gianni.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/gianni.zoom/32/32523_2.png) [@gianni.zoom](https://devforum.zoom.us/u/gianni.zoom)\
**Post date:** [November 22, 2021, 4:54pm UTC](https://devforum.zoom.us/t/api-update-registrant-not-working/60557/2 "2021-11-22T16:54:48Z")

</div>

Hi @kurban ,

Thank you for your inquiry! Do you have the following scopes enabled to grant permission to make the update?

 ![image](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/3X/2/3/2336d499bac42289daae4e249d854a0065fc2dda.png)

Gianni

---

<div class="post-metadata">

**Author:** ![kurban](https://avatars.discourse-cdn.com/v4/letter/k/ed8c4c/32.png) [@kurban](https://devforum.zoom.us/u/kurban)\
**Post date:** [November 22, 2021, 5:19pm UTC](https://devforum.zoom.us/t/api-update-registrant-not-working/60557/3 "2021-11-22T17:19:15Z")

</div>

Thank you, Gianna. I think that’s moving me in the right direction.

I have used the add meeting, add registrant APIs without setting scopes so I didn’t realize that they existed or that they had to be set.

Could you please let me know where scopes permissions are set?

Thank you!

Karl

---

<div class="post-metadata">

**Author:** ![kurban](https://avatars.discourse-cdn.com/v4/letter/k/ed8c4c/32.png) [@kurban](https://devforum.zoom.us/u/kurban)\
**Post date:** [November 22, 2021, 5:48pm UTC](https://devforum.zoom.us/t/api-update-registrant-not-working/60557/4 "2021-11-22T17:48:29Z")

</div>

So in reading up a bit on scopes, it looks like that is under Oauth authentication. I have been using JWT for authentication for all of the other API calls like add meeting and add registration. So for the update registrant API am I required to use oauth, or can scopes be defined under the JWT? I’m not seeing a place to do that. Thanks.

---

<div class="post-metadata">

**Author:** ![gianni.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/gianni.zoom/32/32523_2.png) [@gianni.zoom](https://devforum.zoom.us/u/gianni.zoom)\
**Post date:** [November 22, 2021, 6:21pm UTC](https://devforum.zoom.us/t/api-update-registrant-not-working/60557/5 "2021-11-22T18:21:18Z")

</div>

Hi @kurban,

Ahh sorry that’s on me! I missed that you were using JWT in your initial post.

Your request body looks right from what I can see, but change the endpoint/path URL after v2 to `/webinars/{webinarId}/registrants/status`

Make sure to include those same query parameters of webinarId and occurrence\_id 🙂

Thank you,  
Gianni

---

<div class="post-metadata">

**Author:** ![kurban](https://avatars.discourse-cdn.com/v4/letter/k/ed8c4c/32.png) [@kurban](https://devforum.zoom.us/u/kurban)\
**Post date:** [November 22, 2021, 6:46pm UTC](https://devforum.zoom.us/t/api-update-registrant-not-working/60557/6 "2021-11-22T18:46:03Z")

</div>

Hi Gianni,

I have set up a meeting, not a webinar. And I have a meeting ID which was returned from the add meeting API. So if I change the URL to /webinars… it results in an error. I believe the /meetings URL is correct.

Thanks,

Karl

---

<div class="post-metadata">

**Author:** ![kurban](https://avatars.discourse-cdn.com/v4/letter/k/ed8c4c/32.png) [@kurban](https://devforum.zoom.us/u/kurban)\
**Post date:** [November 22, 2021, 7:08pm UTC](https://devforum.zoom.us/t/api-update-registrant-not-working/60557/7 "2021-11-22T19:08:47Z")

</div>

Btw, I tried ?occurrence\_id=[REDACTED] and ?occurrenceid=[REDACTED] (without the underscore) so see if that parameter made a difference. I currently have the parameter as occurrence\_id.

---

<div class="post-metadata">

**Author:** ![gianni.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/gianni.zoom/32/32523_2.png) [@gianni.zoom](https://devforum.zoom.us/u/gianni.zoom)\
**Post date:** [November 22, 2021, 8:21pm UTC](https://devforum.zoom.us/t/api-update-registrant-not-working/60557/8 "2021-11-22T20:21:53Z")

</div>

Hi @kurban ,

You’re absolutely right about the URL then since you’re looking to update a meeting registrant and not webinar, I’m a little off today 😅

Please send your full request parameters/body, and response results to [developersupport@zoom.us](mailto:developersupport@zoom.us), addressed to me and with a link to this thread and I will try to reproduce this issue and debug.

Thank you,  
Gianni

---

<div class="post-metadata">

**Author:** ![kurban](https://avatars.discourse-cdn.com/v4/letter/k/ed8c4c/32.png) [@kurban](https://devforum.zoom.us/u/kurban)\
**Post date:** [November 23, 2021, 2:36pm UTC](https://devforum.zoom.us/t/api-update-registrant-not-working/60557/9 "2021-11-23T14:36:45Z")

</div>

I did finally get this to work. The issue was that in certain API calls, the registrant id is “registrant\_id” and in this one it is just “id”. Once I made that change everything worked as expected.

Thanks!

---

<div class="post-metadata">

**Author:** ![gianni.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/gianni.zoom/32/32523_2.png) [@gianni.zoom](https://devforum.zoom.us/u/gianni.zoom)\
**Post date:** [November 23, 2021, 4:44pm UTC](https://devforum.zoom.us/t/api-update-registrant-not-working/60557/10 "2021-11-23T16:44:07Z")

</div>

Ahh okay, glad it’s resolved! You put “id” in your request body in you initial post, so where did you have it written differently that affected this API endpoint?

---

<div class="post-metadata">

**Author:** ![kurban](https://avatars.discourse-cdn.com/v4/letter/k/ed8c4c/32.png) [@kurban](https://devforum.zoom.us/u/kurban)\
**Post date:** [November 23, 2021, 5:06pm UTC](https://devforum.zoom.us/t/api-update-registrant-not-working/60557/11 "2021-11-23T17:06:51Z")

</div>

In my RestClient code, I created a class using registrant\_id. Since that call wasn’t working, I decided to use Postman to find out where the issue was. I structured the json body for Postman by hand and used the correct “id” instead of “registrant\_id”.

---

<div class="post-metadata">

**Author:** ![gianni.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/gianni.zoom/32/32523_2.png) [@gianni.zoom](https://devforum.zoom.us/u/gianni.zoom)\
**Post date:** [November 23, 2021, 5:14pm UTC](https://devforum.zoom.us/t/api-update-registrant-not-working/60557/12 "2021-11-23T17:14:48Z")

</div>

Thank you @kurban , this is helpful. Appreciate you sharing!

---

<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:** [December 24, 2021, 3:15am UTC](https://devforum.zoom.us/t/api-update-registrant-not-working/60557/13 "2021-12-24T03:15:45Z")

</div>

Closed on December 24, 2021, 3:15am UTC

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