{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/tale-dev/json-schema/tale-dev-website-patch-schema.json",
  "title": "WebsitePatch",
  "description": "The domain is immutable after create (the crawl registration is keyed by it): a body carrying a `domain` other than the stored one is refused with 400 `WEBSITE_DOMAIN_IMMUTABLE` — delete the website and re-add it under the new domain. The stored value itself may be echoed, as a client that sends the resource it read does.",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/tale-dev-websites-api-openapi.yml#/components/schemas/WebsitePatch",
  "type": "object",
  "additionalProperties": false,
  "properties": {
    "title": {
      "type": "string",
      "maxLength": 200
    },
    "description": {
      "type": "string",
      "maxLength": 2000
    },
    "scanInterval": {
      "type": "string",
      "enum": [
        "60m",
        "6h",
        "12h",
        "1d",
        "5d",
        "7d",
        "30d"
      ]
    },
    "domain": {
      "type": "string",
      "description": "Echo only: the stored value, as a client that sends the resource it read does (compared without regard to case or surrounding whitespace). Any other value is refused with 400 `WEBSITE_DOMAIN_IMMUTABLE`; the domain itself never changes."
    }
  }
}