Skip to content

Latest commit

 

History

History
36 lines (28 loc) · 422 Bytes

File metadata and controls

36 lines (28 loc) · 422 Bytes

Delete role

Endpoint for deleting role.

METHOD: DELETE
URL: /roles/{id}
HEADERS:
    "Authorization": "Bearer eyJhbGciOiJSUzUxMi.....Y1f05c9yvA;boundary="boundary"

Response

STATUS: 200 (Ok)

Errors

STATUS: 401 (Unauthorized)
STATUS: 403 (Forbidden)
STATUS: 404 (NotFound)
BODY: 
{
    "error": true,
    "code": "roleNotFound",
    "reason": "Role not exists."
}