{
  "$defs": {
    "SeriesData": {
      "additionalProperties": false,
      "description": "Inline weekly data for the POC (small). Long jobs may pass ``dataset_ref`` instead.",
      "properties": {
        "controls": {
          "additionalProperties": {
            "items": {
              "type": "number"
            },
            "type": "array"
          },
          "title": "Controls",
          "type": "object"
        },
        "dates": {
          "items": {
            "type": "string"
          },
          "title": "Dates",
          "type": "array"
        },
        "geo": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "title": "Geo"
        },
        "kpi": {
          "items": {
            "type": "number"
          },
          "title": "Kpi",
          "type": "array"
        },
        "spend": {
          "additionalProperties": {
            "items": {
              "type": "number"
            },
            "type": "array"
          },
          "title": "Spend",
          "type": "object"
        }
      },
      "required": [
        "dates",
        "kpi",
        "spend"
      ],
      "title": "SeriesData",
      "type": "object"
    }
  },
  "$id": "https://schemas.ump.dev/v1/adapter-update-request.json",
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "additionalProperties": false,
  "description": "Spec \u00a78 ``update``: refresh a fit with new data (Tier A; other tiers are marked stale instead).",
  "properties": {
    "data": {
      "anyOf": [
        {
          "$ref": "#/$defs/SeriesData"
        },
        {
          "type": "null"
        }
      ],
      "default": null
    },
    "dataset_ref": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "default": null,
      "title": "Dataset Ref"
    },
    "fit_id": {
      "title": "Fit Id",
      "type": "string"
    },
    "retain_data": {
      "default": true,
      "title": "Retain Data",
      "type": "boolean"
    },
    "seed": {
      "default": 0,
      "title": "Seed",
      "type": "integer"
    }
  },
  "required": [
    "fit_id"
  ],
  "title": "UpdateRequest",
  "type": "object"
}
