Resources

Create API resource scope

Create a new scope (permission) for an API resource.

post/api/resources/{resourceId}/scopes

Request

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

Path parameters

resourceIdstring required

The unique identifier of the resource.

Request body

namestring required

The name of the scope. It should be unique for the resource.

descriptionstring nullable

Response

The created scope.

tenantIdstring required
idstring required
resourceIdstring required
namestring required
descriptionstring nullable required
createdAtnumber required

Changes

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