{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/offnadir-delta-com/json-schema/offnadir-delta-com-post-api-v1-index-series-request-schema.json",
  "title": "PostApiV1IndexSeriesRequest",
  "x-generated": "2026-11-19",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/_ae-authored/offnadir-delta-com-openapi-generated.yml#/components/schemas/PostApiV1IndexSeriesRequest",
  "type": "object",
  "properties": {
    "polygon": {
      "type": "array",
      "description": "WGS84 ring [[lon, lat], …] with at least 3 vertices. Statistics cover the samples INSIDE it."
    },
    "bbox": {
      "type": "array",
      "description": "Alternative to polygon: [lon_min, lat_min, lon_max, lat_max] (WGS84)."
    },
    "index": {
      "type": "string",
      "description": "Which optical index to measure: ndvi, evi, savi, ndmi, ndwi, mndwi, ndbi, ndsi, nbr, iron-oxide, clay, ferrous."
    },
    "start": {
      "type": "string",
      "description": "Start date YYYY‑MM‑DD (UTC)."
    },
    "end": {
      "type": "string",
      "description": "End date YYYY‑MM‑DD (UTC)."
    },
    "max_scenes": {
      "type": "integer",
      "description": "1–24 Cap on scenes measured in this call."
    },
    "max_cloud_cover": {
      "type": "number",
      "description": "1–100 Scene cloud‑cover ceiling in percent. Default 30."
    },
    "estimate_only": {
      "type": "boolean",
      "description": "True = free: return the scene count, date span and token cost WITHOUT measuring or charging."
    }
  },
  "required": [
    "index",
    "start",
    "end"
  ]
}