v13

latestOpenAPI 3.1.0MITraw.githubusercontent.com2026-08-0148123138.3 KB
Admin

Update Role

patch/v1/admin/roles/{role_id}

Path parameters

role_idinteger required

The ID of the role to update.

The ID of the role to update.

Request body

namestring nullable

Name of the role.

permissionsPermissionType[] nullable

List of permissions.

Example request

{
  "name": "my-role"
}

Response

Successful Response

object'role'

Type of the object.

idinteger required

ID of the role.

namestring required

Name of the role.

permissionsPermissionType[] required

List of permissions.

usersinteger required

Number of users assigned to the role.

createdinteger required

Time of creation, as Unix timestamp.

updatedinteger required

Time of last update, as Unix timestamp.