{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/popp/json-schema/popp-update-candidate-list-request-schema.json",
  "title": "UpdateCandidateListRequest",
  "description": "Payload for updating a candidate list. At least one field must be provided.",
  "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/UpdateCandidateListRequest",
  "type": "object",
  "properties": {
    "title": {
      "type": "string",
      "minLength": 1,
      "maxLength": 255,
      "description": "New name of the list."
    },
    "description": {
      "type": [
        "string",
        "null"
      ],
      "maxLength": 2000,
      "description": "New description. Pass null to clear it."
    },
    "owner": {
      "type": "string",
      "format": "email",
      "description": "Email of the Popp user to hand the list to. The user must have access to the caller's organization, otherwise the request is rejected with 400."
    },
    "externalId": {
      "type": [
        "string",
        "null"
      ],
      "minLength": 1,
      "maxLength": 256,
      "pattern": "^[\\w.-]+$",
      "description": "New external identifier for the list. Pass null to clear it. Must be unique within the organization, otherwise the request is rejected with 409. The list's id does not change. Lookups by external id can take a moment to reflect a change."
    }
  },
  "additionalProperties": false
}