Assign roles to user
Assign API resource roles to the user. The roles will be added to the existing roles.
Path parameters
-
The unique identifier of the user.
POST
/api/users/{userId}/roles
curl \
--request POST 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"
]
}