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 \
-X POST https://[tenant_id].logto.app/api/organization-roles/{id}/scopes \
-H "Authorization: Bearer $ACCESS_TOKEN" \
-H "Content-Type: application/json" \
-d '{"organizationScopeIds":["string"]}'
Request examples
{
"organizationScopeIds": [
"string"
]
}