user.role is required even when only the names change. A name you leave out keeps itsdata is the user after the update.curl --location --globoff --request PUT 'https:///api/v2/users/' \
--header 'X-Authorization-Consistency-Token;' \
--header 'Organization-Id;' \
--header 'Ocp-Apim-Subscription-Key: ' \
--header 'Authorization: Bearer ' \
--header 'Content-Type: application/json' \
--data '{
"role": "application admin"
}'{
"success": true,
"message": "User role updated successfully",
"data": {
"id": 42,
"email": "[email protected]",
"is_staff": true,
"is_superuser": false,
"is_active": true,
"date_joined": "2026-03-14T09:30:00Z",
"first_name": "Jane",
"last_name": "Doe",
"organization": {
"id": 12,
"created_by": "[email protected]",
"modified_by": "[email protected]",
"created_on": "2025-01-15T10:00:00Z",
"modified_on": "2026-06-01T08:30:00Z",
"org_name": "Contoso",
"domain": "contoso.com",
"description": "Contoso's support workspace.",
"org_logo_url": "",
"org_icon_url": "",
"org_logo_url_dark": "",
"org_icon_url_dark": "",
"is_deleted": false,
"parent": null
}
}
}