Users
Update user role
Changed onUpdate the role of a user. You cannot update your own role.
patch/users/{id}/role
Request
- The document declares no server URL.
- Auth: none declared
Path parameters
idstring uuid required
Example:123e4567-e89b-12d3-a456-426614174000
User ID to update role for
Request body
Example request
{
"role": "admin"
}Response
User role successfully updated
Example response
{
"id": "123e4567-e89b-12d3-a456-426614174000",
"name": "John Doe",
"email": "john.doe@example.com",
"role": "user",
"orgId": "123e4567-e89b-12d3-a456-426614174001",
"department": "hauptamt",
"createdAt": "2024-01-15T10:30:00Z"
}Changes
- info
added the optional property
to the response with the status
- info