{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/popp/json-schema/popp-create-candidate-list-request-schema.json",
  "title": "CreateCandidateListRequest",
  "description": "Payload for creating a candidate list.",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/popp-candidate-lists-api-openapi.yml#/components/schemas/CreateCandidateListRequest",
  "type": "object",
  "properties": {
    "title": {
      "type": "string",
      "minLength": 1,
      "maxLength": 255,
      "description": "Human-readable name of the list. Required."
    },
    "description": {
      "type": "string",
      "maxLength": 2000,
      "description": "Optional free-text description of the list."
    },
    "externalId": {
      "type": "string",
      "pattern": "^[\\w.-]+$",
      "minLength": 1,
      "maxLength": 256,
      "description": "Optional caller-supplied external identifier for the list. Must be unique within the organization."
    },
    "owner": {
      "type": "string",
      "format": "email",
      "description": "Email of the Popp user who owns the list. Defaults to the user the API key belongs to. The user must have access to the caller's organization, otherwise the request is rejected with 400."
    }
  },
  "required": [
    "title"
  ],
  "additionalProperties": false
}