Create API resource scope

POST /api/resources/{resourceId}/scopes

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

Path parameters

  • resourceId string Required

    The unique identifier of the resource.

application/json

Body Required

  • name string Required

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

    Minimum length is 1, maximum length is 256.

  • description string | null

Responses

POST /api/resources/{resourceId}/scopes
curl \
 -X POST https://[tenant_id].logto.app/api/resources/{resourceId}/scopes \
 -H "Content-Type: application/json" \
 -d '{"name":"string","description":"string"}'
Request examples
{
  "name": "string",
  "description": "string"
}