{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/loopgantt-com/json-schema/loopgantt-com-update-task-request-schema.json",
  "title": "UpdateTaskRequest",
  "description": "Only the fields to change; at least one. camelCase or snake_case field names are both accepted.",
  "x-generated": "2026-11-17",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/loopgantt-com-openapi.json#/components/schemas/UpdateTaskRequest",
  "type": "object",
  "minProperties": 1,
  "properties": {
    "name": {
      "type": "string",
      "maxLength": 500
    },
    "description": {
      "type": [
        "string",
        "null"
      ],
      "maxLength": 10000
    },
    "durationDays": {
      "type": "number",
      "minimum": 0,
      "maximum": 3650,
      "description": "Working days; 0 makes the task a milestone"
    },
    "plannedStart": {
      "type": [
        "string",
        "null"
      ],
      "format": "date"
    },
    "plannedEnd": {
      "type": [
        "string",
        "null"
      ],
      "format": "date"
    },
    "deadline": {
      "type": [
        "string",
        "null"
      ],
      "format": "date",
      "description": "Finish-by marker, not a constraint"
    },
    "priority": {
      "type": "string",
      "enum": [
        "low",
        "medium",
        "high",
        "critical"
      ]
    },
    "progress": {
      "type": "integer",
      "minimum": 0,
      "maximum": 100,
      "description": "Percent complete. 100 moves the task into the project's finished stage (status and progress are kept together, as in the app)."
    },
    "status": {
      "type": "string",
      "maxLength": 64,
      "description": "A workflow stage id of the project (GET /projects lists them). Setting the finished stage also sets progress to 100. Any other value is stored as sent and reported in `meta.warnings`."
    },
    "isMilestone": {
      "type": "boolean"
    },
    "isPhase": {
      "type": "boolean",
      "description": "Make the task a phase that groups other tasks"
    },
    "assigneeId": {
      "type": [
        "string",
        "null"
      ],
      "format": "uuid",
      "description": "A person: the project owner or an accepted member. null unassigns."
    },
    "agentLabel": {
      "type": [
        "string",
        "null"
      ],
      "maxLength": 64,
      "description": "The bot that owns the task, e.g. \"qa-bot\". null or an empty string clears it. `none` (any case) is reserved for the `agent=none` filter and answers 400 VALIDATION_ERROR. Answers 503 AGENT_LABEL_UNAVAILABLE on a server without agent labels yet."
    }
  }
}