{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/popp/json-schema/popp-update-candidate-response-schema.json",
  "title": "UpdateCandidateResponse",
  "description": "Response to a partial candidate update. There is no `created` flag: an update never creates a candidate, so an unknown id or external id is a 404.",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/popp-candidates-api-openapi.yml#/components/schemas/UpdateCandidateResponse",
  "type": "object",
  "properties": {
    "ok": {
      "type": "boolean",
      "description": "True when the update was applied."
    },
    "candidate": {
      "type": "object",
      "description": "The updated candidate. Status is IN_PROGRESS because an update re-triggers asynchronous processing.",
      "properties": {
        "id": {
          "type": "string",
          "format": "uuid",
          "description": "Candidate profile id."
        },
        "externalId": {
          "type": [
            "string",
            "null"
          ],
          "description": "The caller-supplied identifier, if the candidate has one."
        },
        "status": {
          "type": [
            "string",
            "null"
          ],
          "description": "Processing status. An update resets this to IN_PROGRESS: parsing and vectorization run asynchronously, so a 200 does not mean the CV has been parsed or indexed."
        },
        "updatedAt": {
          "type": [
            "string",
            "null"
          ],
          "format": "date-time",
          "description": "When the candidate was last updated."
        }
      },
      "required": [
        "id"
      ]
    }
  },
  "required": [
    "ok",
    "candidate"
  ]
}