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.


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


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