{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/linkedin/json-schema/linkedin-dmp-segment-create-request-schema.json",
  "title": "DmpSegmentCreateRequest",
  "x-generated": "2026-11-05",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/linkedin-dmp-segments-api-openapi.yml#/components/schemas/DmpSegmentCreateRequest",
  "type": "object",
  "properties": {
    "accessPolicy": {
      "type": "string",
      "enum": [
        "PRIVATE",
        "PUBLIC"
      ],
      "description": "Access policy for the segment"
    },
    "account": {
      "type": "string",
      "description": "URN of the sponsored account"
    },
    "destinations": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/SegmentDestination"
      }
    },
    "name": {
      "type": "string",
      "description": "Display name for the segment"
    },
    "sourcePlatform": {
      "type": "string",
      "enum": [
        "LIST_UPLOAD",
        "STREAMING"
      ],
      "description": "Source platform"
    },
    "type": {
      "type": "string",
      "enum": [
        "COMPANY_LIST_UPLOAD",
        "USER_LIST_UPLOAD",
        "COMPANY_STREAMING",
        "USER_STREAMING"
      ],
      "description": "Type of segment"
    }
  },
  "required": [
    "accessPolicy",
    "account",
    "destinations",
    "name",
    "sourcePlatform",
    "type"
  ],
  "$defs": {
    "SegmentDestination": {
      "type": "object",
      "properties": {
        "destination": {
          "type": "string",
          "enum": [
            "LINKEDIN"
          ],
          "description": "Destination platform"
        }
      }
    }
  }
}