Roles

Link scopes to role

Link a list of API resource scopes (permissions) to a role. The original linked scopes will be kept.

post/api/roles/{id}/scopes

Request

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

Path parameters

idstring required

The unique identifier of the role.

Request body

scopeIdsstring[] required

An array of API resource scope IDs to be linked.

Response

The role was linked to the scopes successfully.

Changes

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