Assign organization scopes to organization role
Assign organization scopes to the specified organization role
Path parameters
-
The unique identifier of the organization role.
Body Required
-
An array of organization scope IDs to be assigned. Existed scope IDs assignments will be ignored.
Minimum length of each is
1
.
POST
/api/organization-roles/{id}/scopes
curl \
--request POST https://[tenant_id].logto.app/api/organization-roles/{id}/scopes \
--header "Authorization: Bearer $ACCESS_TOKEN" \
--header "Content-Type: application/json" \
--data '{"organizationScopeIds":["string"]}'
Request examples
{
"organizationScopeIds": [
"string"
]
}