{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/getbioflow-com/json-schema/getbioflow-com-update-page-request-schema.json",
  "title": "UpdatePageRequest",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/getbioflow-com-openapi.json#/components/schemas/UpdatePageRequest",
  "type": "object",
  "properties": {
    "expected_updated_at": {
      "type": "string",
      "minLength": 1,
      "description": "Concurrency stamp: the draft.updated_at you last read. A mismatch is refused with 409 stale_snapshot — re-read the page and retry."
    },
    "title": {
      "type": "string",
      "minLength": 2,
      "maxLength": 80
    },
    "description": {
      "type": "string",
      "maxLength": 180
    },
    "theme_preset_key": {
      "type": "string",
      "minLength": 1
    },
    "block_updates": {
      "minItems": 1,
      "maxItems": 20,
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "block_id": {
            "type": "string",
            "minLength": 1
          },
          "data": {
            "type": "object",
            "propertyNames": {
              "type": "string"
            },
            "additionalProperties": {},
            "description": "Fields to merge into the block (partial)"
          }
        },
        "required": [
          "block_id",
          "data"
        ]
      }
    },
    "block_order": {
      "description": "Every existing block ID exactly once, in the new top-to-bottom order",
      "minItems": 1,
      "type": "array",
      "items": {
        "type": "string",
        "minLength": 1
      }
    }
  },
  "required": [
    "expected_updated_at"
  ]
}