Replace organization scopes for organization role
Replace all organization scopes that are assigned to the specified organization role with the given organization scopes. This effectively removes all existing organization scope assignments and replaces them with the new ones.
Path parameters
-
id
string Required The unique identifier of the organization role.
Body
Required
-
organizationScopeIds
array[string] Required An array of organization scope IDs to replace existing scopes.
Minimum length of each is
1
.
PUT
/api/organization-roles/{id}/scopes
curl \
--request PUT '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"
]
}