# Adding a panelist to a webinar via api can silently fail

**URL:** <https://devforum.zoom.us/t/adding-a-panelist-to-a-webinar-via-api-can-silently-fail/7450>\
**Category:** API and Webhooks\
**Created:** [January 10, 2020, 6:46pm UTC](https://devforum.zoom.us/t/adding-a-panelist-to-a-webinar-via-api-can-silently-fail/7450 "2020-01-10T18:46:15Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![markvanlan](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/markvanlan/32/2830_2.png) [@markvanlan](https://devforum.zoom.us/u/markvanlan)\
**Post date:** [January 10, 2020, 6:46pm UTC](https://devforum.zoom.us/t/adding-a-panelist-to-a-webinar-via-api-can-silently-fail/7450/1 "2020-01-10T18:46:15Z")

</div>

I was sending an invalid request to the [add panelists endpoint](https://marketplace.zoom.us/docs/api-reference/zoom-api/webinars/webinarpanelistcreate), and a `201` code was being returned, but the panelist was not being added.

The request body I sent was

```auto
{
  email: 'mark.vanlandingham@discourse.org',
  name: 'Mark VanLandingham' 
}

```

**Instead of the correct:**

```auto
{
  panelists: [
    {
      email: 'mark.vanlandingham@discourse.org',
      name: 'Mark VanLandingham' 
    }
  ]
}

```

You may want to ensure that the API is returning the correct error code when the request is invalid. This is also confusing because the response body I was sent looked like a success as well:

```auto
{ id: correct_webinar_id, updated_at: sometime }

```

---

<div class="post-metadata">

**Author:** ![markvanlan](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/markvanlan/32/2830_2.png) [@markvanlan](https://devforum.zoom.us/u/markvanlan)\
**Post date:** [January 10, 2020, 8:28pm UTC](https://devforum.zoom.us/t/adding-a-panelist-to-a-webinar-via-api-can-silently-fail/7450/2 "2020-01-10T20:28:33Z")

</div>

Another issue to look into:

I sent this to the add panelist endpoint, and once again received a `201` status code without the panelist being created.

```auto
{
  panelists: [
    {
      email: 'mark.vanlandingham@discourse.org',
      name: '' 
    }
  ]
}

```

---

<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:** [January 10, 2020, 9:56pm UTC](https://devforum.zoom.us/t/adding-a-panelist-to-a-webinar-via-api-can-silently-fail/7450/3 "2020-01-10T21:56:18Z")

</div>

Hey @markvanlan,

Thanks for sharing these bugs. We will work on fixing the error codes and responses. (ZOOM-132994)

Thanks,  
Tommy

---

<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:** [February 4, 2020, 5:23pm UTC](https://devforum.zoom.us/t/adding-a-panelist-to-a-webinar-via-api-can-silently-fail/7450/6 "2020-02-04T17:23:05Z")

</div>

Hey @markvanlan,

We were unable to reproduce the issue. If you set the object incorrectly, you will receive a 300 error with an invalid object message.

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

Thanks,  
Tommy

---

<div class="post-metadata">

**Author:** ![DeveloperBot](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/developerbot/32/12632_2.png) [@DeveloperBot](https://devforum.zoom.us/u/DeveloperBot)\
**Post date:** [August 21, 2020, 7:11pm UTC](https://devforum.zoom.us/t/adding-a-panelist-to-a-webinar-via-api-can-silently-fail/7450/7 "2020-08-21T19:11:14Z")

</div>

Closed on August 21, 2020, 7:11pm UTC


