Delete a Role – DELETE /Roles/{id}



Delete a role according to Role Id.

The ‘Manage Roles’ permission is required to execute this API.

Usage:

  1. GET /Users and get details of all roles
  2. DELETE /Roles/{id} and delete a role

URL

/cxrestapi/auth/Roles/{id}

Method:

DELETE

Media Type (header):

Authorization: Bearer <access token value>
Content-Type: application/json;v=1.0

Parameters

Required:

id=[integer] – Unique Id of the role

Success Response:

Code: 204 Success

Error Response:

Code: 400 Bad Request
Code: 401 Unauthorized
Code: 403 Forbidden
Code: 404 Not found

Sample Response:

no content

Notes:

Deletes the role details according to role Id. Once the request is successful, it does not return any content. If the request fails, it returns an error response.




Send Documentation Feedback - If you have comments about this documentation, you can contact the documentation team by sending your feedback to usWe appreciate your feedback!