{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/acronis/main/json-schema/acronis-tenant-id-schema.json",
  "title": "tenant_id",
  "description": "Tenant identifier. Uses numeric identifier in cloud and UUID in on-premises.",
  "x-generated": "2026-10-27",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/acronis-archives-api-openapi.yml#/components/schemas/tenant_id",
  "oneOf": [
    {
      "$ref": "#/$defs/archive_id"
    },
    {
      "description": "Numeric identifier.",
      "type": "string",
      "pattern": "^\\d+$"
    }
  ],
  "$defs": {
    "archive_id": {
      "description": "Universally unique identifier.",
      "type": "string",
      "format": "uuid"
    }
  }
}