{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/bloomberg-buyside-enterprise-solutions/json-schema/bloomberg-buyside-enterprise-solutions-allocation-request-schema.json",
  "title": "AllocationRequest",
  "x-generated": "2026-11-25",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/bloomberg-buyside-enterprise-solutions-allocations-api-openapi.yml#/components/schemas/AllocationRequest",
  "type": "object",
  "required": [
    "executionId",
    "allocations"
  ],
  "properties": {
    "executionId": {
      "type": "string",
      "description": "Execution to allocate"
    },
    "method": {
      "type": "string",
      "enum": [
        "PRO_RATA",
        "MANUAL",
        "RULE_BASED"
      ],
      "default": "MANUAL",
      "description": "Allocation method"
    },
    "allocations": {
      "type": "array",
      "items": {
        "type": "object",
        "required": [
          "portfolioId",
          "quantity"
        ],
        "properties": {
          "portfolioId": {
            "type": "string",
            "description": "Target portfolio"
          },
          "quantity": {
            "type": "number",
            "description": "Quantity to allocate"
          }
        }
      },
      "minItems": 1
    }
  }
}