# Zoom API v2 Add registrant to webinar, response 405

**URL:** <https://devforum.zoom.us/t/zoom-api-v2-add-registrant-to-webinar-response-405/39270>\
**Category:** API and Webhooks\
**Created:** [December 28, 2020, 1:34am UTC](https://devforum.zoom.us/t/zoom-api-v2-add-registrant-to-webinar-response-405/39270 "2020-12-28T01:34:37Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![sebalatorre](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/sebalatorre/32/20683_2.png) [@sebalatorre](https://devforum.zoom.us/u/sebalatorre)\
**Post date:** [December 28, 2020, 1:34am UTC](https://devforum.zoom.us/t/zoom-api-v2-add-registrant-to-webinar-response-405/39270/1 "2020-12-28T01:34:37Z")

</div>

**Description**  
I’m using Python and JWT to connect to the API. I’m able to get the list of webinars, get a webinar, list the registrants, but when I need to put one (add a registrant to a webinar) it’s returning error 405.

**Error**  
\<Response [405]\>  
\<bound method Response.json of \<Response [405]\>\>

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

**Which Endpoint/s?**  
[https://api.zoom.us/v2/webinars/81418702015/registrants](https://api.zoom.us/v2/webinars/81418702015/registrants)’

**How To Reproduce (If applicable)**  
def putWebinarRegistrant(self, webinar\_id, first\_name, last\_name, email):  
headers = {  
‘Authorization’: "Bearer "+self.encode,  
‘content-type’: “application/json”  
}  
data = {  
‘email’: email,  
‘first\_name’: first\_name,  
‘last\_name’: last\_name,  
}  
response = requests.put(‘[https://api.zoom.us/v2/webinars/’+str(webinar\_id)+’/registrants](https://api.zoom.us/v2/webinars/'+str(webinar_id)+'/registrants)’, json=data, headers=headers )  
print(response)  
return response.json

**Additional context**  
Webinar is setup to allow register. I’ve checked other similar issues in the forum but with no solution to my problem. Also tried with Postman with same results: 405.

---

<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:** [December 28, 2020, 9:13pm UTC](https://devforum.zoom.us/t/zoom-api-v2-add-registrant-to-webinar-response-405/39270/2 "2020-12-28T21:13:32Z")

</div>

Hey @sebalatorre,

To confirm, you are trying to [Add a Webinar Registrant](https://marketplace.zoom.us/docs/api-reference/zoom-api/webinars/webinarregistrantcreate)?

If so, it is a `POST` request, not a `PUT` request.

Let me know if that helps! 🙂

Thanks,  
Tommy

---

<div class="post-metadata">

**Author:** ![sebalatorre](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/sebalatorre/32/20683_2.png) [@sebalatorre](https://devforum.zoom.us/u/sebalatorre)\
**Post date:** [December 28, 2020, 9:24pm UTC](https://devforum.zoom.us/t/zoom-api-v2-add-registrant-to-webinar-response-405/39270/3 "2020-12-28T21:24:50Z")

</div>

Hahahaha, oh my! sorry about that! Made the change and works perfect now!

Thanks!

---

<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:** [December 28, 2020, 10:36pm UTC](https://devforum.zoom.us/t/zoom-api-v2-add-registrant-to-webinar-response-405/39270/4 "2020-12-28T22:36:57Z")

</div>

No worries at all, we are happy to help! 🙂

If you have any other questions feel free to reach out!

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:** [January 28, 2021, 8:37am UTC](https://devforum.zoom.us/t/zoom-api-v2-add-registrant-to-webinar-response-405/39270/5 "2021-01-28T08:37:06Z")

</div>

Closed on January 28, 2021, 8:37am UTC

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