Organization roles

Replace resource scopes for organization role

Replace all resource scopes that are assigned to the specified organization role with the given resource scopes. This effectively removes all existing organization scope assignments and replaces them with the new ones.

put/api/organization-roles/{id}/resource-scopes

Request

  • Base URL: https://[tenant_id].logto.app
  • URL: https://[tenant_id].logto.app/api/organization-roles/{id}/resource-scopes
  • Auth: OAuth 2 (client credentials, token URL /oidc/token, scopes: all)

Path parameters

idstring required

The unique identifier of the organization role.

Request body

scopeIdsstring[] required

An array of resource scope IDs to replace existing scopes.

Response

Resource scopes were replaced successfully.

Changes

No recorded changes to this operation across all 8 revisions of this API.