{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/ivans/json-schema/ivans-patched-market-configuration-update-request-schema.json",
  "title": "PatchedMarketConfigurationUpdateRequest",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/ivans-market-configurations-api-openapi.yml#/components/schemas/PatchedMarketConfigurationUpdateRequest",
  "type": "object",
  "properties": {
    "linesOfBusiness": {
      "type": "array",
      "items": {
        "type": "string",
        "format": "uuid"
      }
    },
    "accessStructures": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/MarketStructureRequest"
      }
    },
    "agency": {
      "type": "string",
      "format": "uuid"
    },
    "appointed": {
      "type": "boolean"
    },
    "preferred": {
      "type": "boolean"
    },
    "notes": {
      "type": "string"
    }
  },
  "$defs": {
    "MarketStructureRequest": {
      "type": "object",
      "properties": {
        "agency": {
          "type": "string",
          "format": "uuid"
        },
        "branch": {
          "type": "string",
          "format": "uuid"
        },
        "department": {
          "type": "string",
          "format": "uuid"
        },
        "businessUnit": {
          "type": "string",
          "format": "uuid"
        }
      },
      "required": [
        "agency"
      ]
    }
  }
}