Update roles for user
Update API resource roles assigned to the user. This will replace the existing roles.
Path parameters
-
The unique identifier of the user.
PUT /api/users/{userId}/roles
curl \
-X PUT https://[tenant_id].logto.app/api/users/{userId}/roles \
-H "Authorization: Bearer $ACCESS_TOKEN" \
-H "Content-Type: application/json" \
-d '{"roleIds":["string"]}'
Request examples
{
"roleIds": [
"string"
]
}