Skip to main content

Delete role

DELETE 

/v1/roles-with-permissions/:roleId

Delete role

This endpoint allows deleting a role along with its associated permissions. It supports replacing the deleted role with another role by specifying a new_role_id in the query parameters. If the role does not exist, a 404 error is returned. On successful deletion, a 204 status code is sent back.

Request

Path Parameters

    role_id stringrequired

    Role id

    roleId uuidrequired

Query Parameters

    new_role_id string

    New role id to replace the deleted role

Responses

Role and its permissions deleted

Loading...