{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "#/components/schemas/DispositionUpdate",
  "title": "DispositionUpdate",
  "type": "object",
  "description": "An update to the disposition (application status) of a candidate for a specific job posting. Used to sync hiring pipeline status changes back to Indeed.",
  "required": [
    "applicationId",
    "status"
  ],
  "properties": {
    "applicationId": {
      "type": "string",
      "description": "The unique identifier for the application.",
      "example": "500123"
    },
    "status": {
      "type": "string",
      "description": "The new disposition status for the application. Must be one of Indeed's predefined categories.",
      "enum": [
        "NEW",
        "CONTACTED",
        "INTERVIEWED",
        "OFFERED",
        "HIRED",
        "REJECTED"
      ],
      "example": "NEW"
    },
    "statusUpdatedAt": {
      "type": "string",
      "format": "date-time",
      "description": "The timestamp when the status change occurred.",
      "example": "2026-01-15T10:30:00Z"
    },
    "rejectionReason": {
      "type": "string",
      "description": "The reason for rejection, if the status is REJECTED.",
      "example": "example_value"
    }
  }
}