# Add a registrant webinar without last\_name return 400 bad request

**URL:** <https://devforum.zoom.us/t/add-a-registrant-webinar-without-last-name-return-400-bad-request/59167>\
**Category:** API and Webhooks\
**Tags:** webinar\
**Created:** [October 21, 2021, 7:41am UTC](https://devforum.zoom.us/t/add-a-registrant-webinar-without-last-name-return-400-bad-request/59167 "2021-10-21T07:41:24Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![mawan-fairtech](https://avatars.discourse-cdn.com/v4/letter/m/958977/32.png) [@mawan-fairtech](https://devforum.zoom.us/u/mawan-fairtech)\
**Post date:** [October 21, 2021, 7:41am UTC](https://devforum.zoom.us/t/add-a-registrant-webinar-without-last-name-return-400-bad-request/59167/1 "2021-10-21T07:41:24Z")

</div>

**Description**  
I’m trying to add a registrant using API. It works just fine until I set the last\_name to null or to only space string. On the documentation page, the [Add a webinar registrant API](https://marketplace.zoom.us/docs/api-reference/zoom-api/webinars/webinarregistrantcreate) the last\_name parameter is not required, only first\_name and email are required. On the other hand, the [Perform Batch Registrant API](https://marketplace.zoom.us/docs/api-reference/zoom-api/webinars/addbatchwebinarregistrants) is working as expected when I set the last\_name to null.

**Error**  
{  
“code”: 300,  
“message”: “The parameter is required: last\_name.”  
}

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

**Which Endpoint/s?**  
POST /webinars/{webinarId}/registrants

**How To Reproduce (If applicable)**  
Steps to reproduce the behavior:

1. Make a request API Add a webinar registrant. And set the value of the last\_name parameter to null
2. The API will return 400 bad request response codes. The response body message said, “The parameter is required: last\_name.”

---

<div class="post-metadata">

**Author:** ![elisa.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/elisa.zoom/32/47836_2.png) [@elisa.zoom](https://devforum.zoom.us/u/elisa.zoom)\
**Post date:** [October 25, 2021, 4:25pm UTC](https://devforum.zoom.us/t/add-a-registrant-webinar-without-last-name-return-400-bad-request/59167/2 "2021-10-25T16:25:35Z")

</div>

Hi @mawan-fairtech

Thanks for reaching out to the Zoom Developer Forum!  
You are right, on the docs page the [Add webinar registrant API](https://marketplace.zoom.us/docs/api-reference/zoom-api/webinars/webinarregistrantcreate) , the last\_name parameter is not required.  
I have tried to replicate the behavior you are seeing and I am not getting any error on my side.

I am passing only the email and first\_name in the request body and I am getting a status 201 and getting a response body. I also tried passing last\_name as null or as an empty string and again, I am not getting any errors.

Can you please confirm with me if you are still seeing this errors?  
Thanks  
Elisa

---

<div class="post-metadata">

**Author:** ![mawan-fairtech](https://avatars.discourse-cdn.com/v4/letter/m/958977/32.png) [@mawan-fairtech](https://devforum.zoom.us/u/mawan-fairtech)\
**Post date:** [November 1, 2021, 6:32am UTC](https://devforum.zoom.us/t/add-a-registrant-webinar-without-last-name-return-400-bad-request/59167/3 "2021-11-01T06:32:11Z")

</div>

![Screen Shot 2021-11-01 at 14.28.08](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/3X/a/1/a11d11377d0e8f89614f7e20712e60fd6c6af088.png)

 ![Screen Shot 2021-11-01 at 14.29.49](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/3X/0/2/02fb3030298abd1477d429fb48cbd15a853ff532.png)

Hi @elisa.zoom, thanks for your response. I’m still able to reproduce the errors. Do you use this endpoint below?  
POST /webinars/{webinarId}/registrants

---

<div class="post-metadata">

**Author:** ![elisa.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/elisa.zoom/32/47836_2.png) [@elisa.zoom](https://devforum.zoom.us/u/elisa.zoom)\
**Post date:** [November 3, 2021, 9:14pm UTC](https://devforum.zoom.us/t/add-a-registrant-webinar-without-last-name-return-400-bad-request/59167/4 "2021-11-03T21:14:03Z")

</div>

Hi @mawan-fairtech

Thank you for sharing those screenshots with me. It is very strange cause I am using the same endpoint and I do not get any errors. I can pass the last\_name as null or just don’t pass it and the registration is successful.

Could you please try creating a new webinar and try with a brand new WebinarID.

Thanks so much  
Elisa

---

<div class="post-metadata">

**Author:** ![mawan-fairtech](https://avatars.discourse-cdn.com/v4/letter/m/958977/32.png) [@mawan-fairtech](https://devforum.zoom.us/u/mawan-fairtech)\
**Post date:** [November 6, 2021, 1:30am UTC](https://devforum.zoom.us/t/add-a-registrant-webinar-without-last-name-return-400-bad-request/59167/5 "2021-11-06T01:30:22Z")

</div>

Hi @elisa.zoom

Thanks for the response. Yeah, it’s very strange. I’ve tried to create a new webinar and the result is still the same. I might be using the batch registration endpoint to solve this issue at my end.

---

<div class="post-metadata">

**Author:** ![elisa.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/elisa.zoom/32/47836_2.png) [@elisa.zoom](https://devforum.zoom.us/u/elisa.zoom)\
**Post date:** [November 8, 2021, 2:12pm UTC](https://devforum.zoom.us/t/add-a-registrant-webinar-without-last-name-return-400-bad-request/59167/6 "2021-11-08T14:12:44Z")

</div>

Hi @mawan-fairtech

Let me know if you can make it work with batch registration. If anything you can send an email to [developersupport@zoom.us](mailto:developersupport@zoom.us) with the link of this thread and your accountId or email, so I can debug further.

Thanks  
Elisa

---

<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 9, 2021, 12:12am UTC](https://devforum.zoom.us/t/add-a-registrant-webinar-without-last-name-return-400-bad-request/59167/7 "2021-12-09T00:12:48Z")

</div>

Closed on December 9, 2021, 12:12am UTC

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