Update roles for a user in an organization
Update roles assigned to a user in the specified organization with the provided data.
Path parameters
-
The unique identifier of the organization.
-
The unique identifier of the user.
Body Required
-
An array of organization role IDs to update for the user.
Minimum length of each is
1
.
PUT
/api/organizations/{id}/users/{userId}/roles
curl \
--request PUT https://[tenant_id].logto.app/api/organizations/{id}/users/{userId}/roles \
--header "Authorization: Bearer $ACCESS_TOKEN" \
--header "Content-Type: application/json" \
--data '{"organizationRoleIds":["string"]}'
Request examples
{
"organizationRoleIds": [
"string"
]
}