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
- 204
- 404
- 500
Role and its permissions deleted
Role not found
- text/plain
- Schema
Schema
string
Internal server error
- text/plain
- Schema
Schema
string
Loading...