{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/dotsy-ai/json-schema/dotsy-ai-optimize-assets-request-schema.json",
  "title": "OptimizeAssetsRequest",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/dotsy-ai-assets-api-openapi.yml#/components/schemas/OptimizeAssetsRequest",
  "type": "object",
  "properties": {
    "keys": {
      "type": "array",
      "items": {
        "type": "string",
        "minLength": 1,
        "maxLength": 2048
      },
      "minItems": 1,
      "maxItems": 50,
      "description": "1–50 site paths of images the pages use: `/assets/photo.jpg` (or the bare key `photo.jpg`) for an uploaded file, or the path of an imported file such as `/wp-content/uploads/hero.png`. A query or `#hash` is ignored. These are the `ref`s that `POST …/verify` reports in `health.assets`."
    },
    "dryRun": {
      "type": "boolean",
      "description": "Report what would happen, with an estimated `after`, without changing a file or spending the image budget."
    }
  },
  "required": [
    "keys"
  ]
}