# REST API - Add a webinar registrant

**URL:** <https://devforum.zoom.us/t/rest-api-add-a-webinar-registrant/88898>\
**Category:** API and Webhooks\
**Created:** [May 23, 2023, 3:48pm UTC](https://devforum.zoom.us/t/rest-api-add-a-webinar-registrant/88898 "2023-05-23T15:48:20Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Nosis](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/nosis/32/23697_2.png) [@Nosis](https://devforum.zoom.us/u/Nosis)\
**Post date:** [May 23, 2023, 3:48pm UTC](https://devforum.zoom.us/t/rest-api-add-a-webinar-registrant/88898/1 "2023-05-23T15:48:20Z")

</div>

I am having the following problem

When I want to add a record to a webinar, it records it BUT NOT ON THE WEBINAR I CHOOSE

I register for the webinar occurrence\_id 4836817008000, but the API response is that it registers me for the webinar occurrence\_id 1686855600000, which is another date

I send you the JSON that I send to the API

{\n “email”: “[braulio000@gmail.com](mailto:braulio000@gmail.com)”,\n “first\_name”: “braulio”,\n “last\_name”: “braulio”,\n “address”: “”,\n “city”: “”,\n “country”: “”,\n “zip”: “”,\n “state”: “”,\n “phone”: “0303456”,\n “industry”: “”,\ n “org”: “”,\n “job\_title”: “”,\n “purchasing\_time\_frame”: “”,\n “role\_in\_purchase\_process”: “”,\n “no\_of\_employees”: “”,\n “comments”: “”,\n “custom\_questions”: [\n {\n “title”: “Company Name”,\n “value”: “test”\n }\n],\n “source\_id”: " 3516709478244",\n “uuid”: “83085171987”,\n “occurrence\_id”: “4836817008000”,\n “token”: “MY\_TOKEN\_HIDDEN”\n}

I send you the response that the API returns

{‘registrant\_id’: ‘weE31zbFQ8O7b8SM0ZGMEQ’, ‘id’: 83085171987, ‘topic’: ‘PEPs’, ‘start\_time’: ‘2023-07-20T14:00:00Z’, ‘join\_url’: ‘[https://nosis](https://nosis). [Launch Meeting - Zoom](http://zoom.us/w/83085171987?tk=IFBmD9rgAiBpCaoIraA4ZFRNJVbbIPbq1op7s7q37tk.DQMAAAATWEMdExZ3ZUUzMXpiRlE4TzdiOFNNMFpHTUVRAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA)’, ‘occurrences’: [{‘occurrence\_id’ : ‘ **1686855600000** ’, ‘start\_time’: ‘2023-06-15T19:00:00Z’, ‘duration’: 60 , ‘status’: ‘available’}]}

I send you the URL that I consult

[https://api.zoom.us/v2/webinars/83085171987/registrants?occurrence\_id=483681700800](https://api.zoom.us/v2/webinars/83085171987/registrants?occurrence_id=483681700800)

EXPECTED RESPONSE

{‘registrant\_id’: ‘weE31zbFQ8O7b8SM0ZGMEQ’, ‘id’: 83085171987, ‘topic’: ‘PEPs’, ‘start\_time’: ‘2023-07-20T14:00:00Z’, ‘join\_url’: ‘[https://nosis](https://nosis). [Launch Meeting - Zoom](http://zoom.us/w/83085171987?tk=IFBmD9rgAiBpCaoIraA4ZFRNJVbbIPbq1op7s7q37tk.DQMAAAATWEMdExZ3ZUUzMXpiRlE4TzdiOFNNMFpHTUVRAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA)’, ‘occurrences’: [{‘occurrence\_id’ : ‘ **4836817008000** ’, ‘start\_time’: ‘2023-06-15T19:00:00Z’, ‘duration’: 60 , ‘status’: ‘available’}]}

**THIS HAPPENS TO ME WITH ALL MY WEBINARS**

---

<div class="post-metadata">

**Author:** ![MultiplayerSession](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/multiplayersession/32/66446_2.png) [@MultiplayerSession](https://devforum.zoom.us/u/MultiplayerSession)\
**Post date:** [May 23, 2023, 5:56pm UTC](https://devforum.zoom.us/t/rest-api-add-a-webinar-registrant/88898/2 "2023-05-23T17:56:26Z")

</div>

The [Add a webinar registrant documentation](https://developers.zoom.us/docs/api/rest/reference/zoom-api/methods/#operation/webinarRegistrantCreate) states that the URL query string parameter should be `occurrence_ids` (plural), not `occurrence_id` (singular) as used in your example URL.

---

<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:** [May 23, 2023, 6:58pm UTC](https://devforum.zoom.us/t/rest-api-add-a-webinar-registrant/88898/4 "2023-05-23T18:58:45Z")

</div>

Thanks for catching that @MultiplayerSession , appreciate your contributions to our developer platform!

Additionally @Nosis , can you please confirm [the type of registration settings enabled](https://support.zoom.us/hc/en-us/articles/204619915)?

---

<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:** [May 26, 2024, 10:35am UTC](https://devforum.zoom.us/t/rest-api-add-a-webinar-registrant/88898/5 "2024-05-26T10:35:25Z")

</div>

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