Skip to main content
PUT
Update a role’s information. All fields are optional - only provide the fields you want to update. Requires Super Admin or HR Manager permissions.
This endpoint supports both PUT and PATCH methods.

Path Parameters

string
required
The unique identifier of the role (UUID format)Example: "550e8400-e29b-41d4-a716-446655440000"

Request Body

string
Name of the role. Must be between 2 and 50 characters if provided.Example: "Lead Developer"
string
Description of the role.Example: "Lead software development position"
string[]
Array of cached permission strings.Example: ["employees:read", "employees:write", "employees:delete"]

Response

boolean
Indicates if the request was successful
object
The updated role object