{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/bloomberg-buyside-enterprise-solutions/json-schema/bloomberg-buyside-enterprise-solutions-create-portfolio-request-schema.json",
  "title": "CreatePortfolioRequest",
  "x-generated": "2026-11-25",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/bloomberg-buyside-enterprise-solutions-portfolios-api-openapi.yml#/components/schemas/CreatePortfolioRequest",
  "type": "object",
  "required": [
    "name",
    "type",
    "currency"
  ],
  "properties": {
    "name": {
      "type": "string",
      "description": "Portfolio name",
      "minLength": 1,
      "maxLength": 256
    },
    "description": {
      "type": "string",
      "description": "Portfolio description"
    },
    "type": {
      "type": "string",
      "enum": [
        "TRADING",
        "MODEL",
        "BENCHMARK",
        "COMPOSITE"
      ]
    },
    "currency": {
      "type": "string",
      "description": "Base currency (ISO 4217)"
    },
    "benchmarkId": {
      "type": "string",
      "description": "Benchmark identifier to assign"
    },
    "manager": {
      "type": "string",
      "description": "Portfolio manager identifier"
    },
    "inceptionDate": {
      "type": "string",
      "format": "date",
      "description": "Portfolio inception date"
    }
  }
}