{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/dotsy-ai/json-schema/dotsy-ai-content-rename-response-schema.json",
  "title": "ContentRenameResponse",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/dotsy-ai-content-api-openapi.yml#/components/schemas/ContentRenameResponse",
  "type": "object",
  "properties": {
    "key": {
      "type": "string",
      "description": "The content key after the rename."
    },
    "path": {
      "type": "string",
      "description": "The route path the page now serves at, when it has one."
    },
    "oldKey": {
      "type": "string",
      "description": "The key before the rename."
    },
    "oldPath": {
      "type": "string",
      "description": "The route path before the rename."
    },
    "written": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "description": "Every content key the rename staged: the new key and the old key's removal — for a shared section (`fragments/<name>.html`) also each page, layout and section that places it. Publish exactly these to make it live."
    },
    "linksRewritten": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "key": {
            "type": "string",
            "description": "Draft HTML content key that was updated."
          },
          "count": {
            "type": "integer",
            "description": "Number of `href` values rewritten in that key."
          }
        },
        "required": [
          "key",
          "count"
        ]
      },
      "description": "When link rewrite ran after the move: draft HTML keys updated (`[]` if none matched). Root-relative paths and `https://{slug}.dotsy.site/…` hrefs to the old path; not custom-domain absolutes, scripts, or code samples. Publish to ship."
    },
    "linksRewriteTruncated": {
      "type": "boolean",
      "enum": [
        true
      ],
      "description": "Link scan stopped early (HTML key cap — up to 100 on typical sites, 500 on sites with full content search — or an error) — some pages may still link to the old path."
    },
    "published": {
      "type": "boolean",
      "enum": [
        false
      ],
      "description": "Always false: a rename is staged until you publish."
    },
    "hint": {
      "type": "string",
      "description": "Reminder that the change is staged."
    }
  },
  "required": [
    "key",
    "written",
    "published",
    "hint"
  ]
}