Role
Update a role
PATCH /roles/{id}
PATCH /roles/{id}
Path parameters
idintegerpathrequiredNo description.
Request body
namestringbodyThe name of the role
descriptionstringbodyThe description of the role
baseRoleIdintegerbodyThe ID of the base role
permissionsany[]bodyPermissions for this role. When reading: returns grouped permissions with labels. When writing: accepts array of permission names
Request Example
{
"name": "Admin",
"description": "Handles administrative tasks",
"baseRoleId": 1,
"permissions": [
null
]
}Responses
200 — Role updated successfully
403 — Unauthorized
404 — Role not found
500 — Internal error