# Roles API Endpoint returns Response code 400 for invalid zoom role, documentation says it should be 300

**URL:** <https://devforum.zoom.us/t/roles-api-endpoint-returns-response-code-400-for-invalid-zoom-role-documentation-says-it-should-be-300/71671>\
**Category:** API and Webhooks\
**Tags:** postman, api\
**Created:** [July 5, 2022, 12:34pm UTC](https://devforum.zoom.us/t/roles-api-endpoint-returns-response-code-400-for-invalid-zoom-role-documentation-says-it-should-be-300/71671 "2022-07-05T12:34:45Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![praveen.kukreja](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/praveen.kukreja/32/39078_2.png) [@praveen.kukreja](https://devforum.zoom.us/u/praveen.kukreja)\
**Post date:** [July 5, 2022, 12:34pm UTC](https://devforum.zoom.us/t/roles-api-endpoint-returns-response-code-400-for-invalid-zoom-role-documentation-says-it-should-be-300/71671/1 "2022-07-05T12:34:45Z")

</div>

**Description**  
_Hi Team, I tried Roles API for an invalid role id. As per [Zoom documentation](https://marketplace.zoom.us/docs/api-reference/zoom-api/methods/#operation/getRoleInformation) the response code should be 300, However the api response code we get is 400_

**Error**  
_Response code is not as expected._

**API Endpoint**  
_GET [https://api.zoom.us/v2/roles/{roleId}](https://api.zoom.us/v2/roles/%7BroleId%7D)_

**How To Reproduce**  
_Steps to reproduce the behavior:_  
_1. Hit the above API for an invalid role id_  
_2. Expected response code: 300 as per documentation_  
_3. However, we are getting response code 400_

---

<div class="post-metadata">

**Author:** ![praveen.kukreja](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/praveen.kukreja/32/39078_2.png) [@praveen.kukreja](https://devforum.zoom.us/u/praveen.kukreja)\
**Post date:** [July 5, 2022, 12:35pm UTC](https://devforum.zoom.us/t/roles-api-endpoint-returns-response-code-400-for-invalid-zoom-role-documentation-says-it-should-be-300/71671/2 "2022-07-05T12:35:37Z")

</div>

Adding a screenshot for the POSTMAN request

> **[unnamed](https://ibb.co/qnCbxbx)**
>
> Image unnamed hosted in ImgBB

---

<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:** [July 11, 2022, 2:49pm UTC](https://devforum.zoom.us/t/roles-api-endpoint-returns-response-code-400-for-invalid-zoom-role-documentation-says-it-should-be-300/71671/3 "2022-07-11T14:49:48Z")

</div>

Hi @praveen.kukreja

Thanks for reaching out to the Zoom Developer Forum and welcome to our community! I am happy to help here!

I tried debugging this issue and I followed the steps to reproduce it on my end and yes, when passing an invalid role ID, I am getting a 400 error Bad Request and Role does not exist.

Now, as per in our documentation I can see we are probably missing this errors. Cause the one listed is a 300 Role not found.

Thank you so much for bringing this up to our attention, I will make sure to pass this information to our Documentation team so they can help me fixing this in our end.

Cheers,  
Elisa

---

<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:** [July 13, 2022, 12:00pm UTC](https://devforum.zoom.us/t/roles-api-endpoint-returns-response-code-400-for-invalid-zoom-role-documentation-says-it-should-be-300/71671/4 "2022-07-13T12:00:06Z")

</div>

Closed on July 13, 2022, 12:00pm UTC

This topic was automatically closed after 45 hours. New replies are no longer allowed.
