Enneo

Role

Update a role

PATCH /roles/{id}

PATCH /roles/{id}

Path parameters

idintegerpathrequired

No description.

Request body

namestringbody

The name of the role

descriptionstringbody

The description of the role

baseRoleIdintegerbody

The ID of the base role

permissionsany[]body

Permissions 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