Create an organization scope

POST /api/organization-scopes

Create a new organization scope with the given data.

application/json

Body Required

  • name string Required

    The name of the organization scope. It must be unique within the organization template.

    Minimum length is 1, maximum length is 128.

  • description string | null

    The description of the organization scope.

    Maximum length is 256.

Responses

  • 201

    The organization scope was created successfully.

  • 400

    Bad Request

  • 401

    Unauthorized

  • 403

    Forbidden

  • 422

    The organization scope name is already in use.

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