{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/karbonhq/json-schema/karbonhq-integration-task-writeable-schema.json",
  "title": "IntegrationTaskWriteable",
  "description": "The writable properties of an Integration Task",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/karbonhq-integrated-workflows-api-openapi.yml#/components/schemas/IntegrationTaskWriteable",
  "type": "object",
  "properties": {
    "TaskName": {
      "type": "string",
      "maxLength": 200,
      "description": "The name of the specific Integration Task Definition"
    },
    "TaskPrimaryLinkUrl": {
      "oneOf": [
        {
          "type": "string",
          "format": "uri",
          "maxLength": 200
        },
        {
          "type": "null"
        }
      ],
      "description": "The optional default primary link URL of the specific Integration Task Definition"
    },
    "TaskPrimaryLinkLabel": {
      "oneOf": [
        {
          "type": "string",
          "maxLength": 20
        },
        {
          "type": "null"
        }
      ],
      "description": "The optional default label for the primary link URL of the specific Integration Task Definition"
    },
    "TaskSecondaryLinkUrl": {
      "oneOf": [
        {
          "type": "string",
          "format": "uri",
          "maxLength": 200
        },
        {
          "type": "null"
        }
      ],
      "description": "The optional default label for the secondary link URL of the specific Integration Task Definition"
    },
    "TaskSecondaryLinkLabel": {
      "oneOf": [
        {
          "type": "string",
          "maxLength": 20
        },
        {
          "type": "null"
        }
      ],
      "description": "The optional default label for the secondary link URL of the specific Integration Task Definition"
    },
    "TaskStatus": {
      "type": "string",
      "maxLength": 50
    },
    "PrimaryStatus": {
      "type": "string",
      "enum": [
        "Planned",
        "ReadyToStart",
        "InProgress",
        "Waiting",
        "Completed"
      ]
    },
    "TaskDueDate": {
      "type": "string"
    },
    "TaskData": {
      "type": "array",
      "description": "Key/value metadata for the task. The combined serialized content must not exceed 4000 characters.",
      "items": {
        "$ref": "#/$defs/IntegrationTaskData"
      }
    }
  },
  "$defs": {
    "IntegrationTaskData": {
      "type": "object",
      "description": "Optional integration task data key/value pairs",
      "properties": {
        "Key": {
          "type": "string"
        },
        "Value": {
          "type": "string"
        }
      }
    }
  }
}