{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/buildertrend/json-schema/buildertrend-task-update-request-schema.json",
  "title": "TaskUpdateRequest",
  "description": "Send at least one field. Fields left out are unchanged.",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/buildertrend-openapi.yml#/components/schemas/TaskUpdateRequest",
  "type": "object",
  "minProperties": 1,
  "properties": {
    "title": {
      "type": "string",
      "maxLength": 255
    },
    "taskType": {
      "type": "string",
      "enum": [
        "Task",
        "PunchList",
        "ScheduleItem"
      ],
      "description": "Case-sensitive."
    },
    "status": {
      "type": "string",
      "enum": [
        "NotStarted",
        "Completed"
      ],
      "description": "Case-sensitive."
    },
    "startDate": {
      "type": [
        "string",
        "null"
      ],
      "description": "A date, as midnight with no UTC offset, e.g. `2026-01-12T00:00:00`. Send `null` to clear it."
    },
    "endDate": {
      "type": [
        "string",
        "null"
      ],
      "description": "A date, as midnight with no UTC offset. Send `null` to clear it, which you can't do while the task has a `startDate`."
    }
  }
}