Update User Role
PUT/update-user-role/workspace/{workspaceId}
Updates the role of a user within a specific workspace.
Path Parameters
UUID of the workspace.
Request Body
New role to assign.
Email of the user whose role is being updated.
Error Responses
User not found by email, user not in workspace, removing the last active admin, or user owns apps and no transferring user provided.
External API disabled, missing EXTERNAL_API license, or invalid Authorization token.
Not available on Community Edition.
EXTERNAL_API license not active on the instance.
Request
curl -X PUT "https://{your-domain}/api/ext/update-user-role/workspace/{workspaceId}" -H "Authorization: Basic <access_token>" -H "Content-Type: application/json" -d '{
"newRole": "end-user",
"email": "[email protected]"
}'Response: 200