Update roles for user
Update API resource roles assigned to the user. This will replace the existing roles.
PUT
/api/users/{userId}/roles
curl \
--request PUT 'https://[tenant_id].logto.app/api/users/{userId}/roles' \
--header "Authorization: Bearer $ACCESS_TOKEN" \
--header "Content-Type: application/json" \
--data '{"roleIds":["string"]}'
Request examples
{
"roleIds": [
"string"
]
}