{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/microsoft-purview/json-schema/microsoft-purview-workflow-task-schema.json",
  "title": "WorkflowTask",
  "x-generated": "2026-11-05",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/microsoft-purview-workflow-task-api-openapi.yml#/components/schemas/WorkflowTask",
  "type": "object",
  "properties": {
    "id": {
      "type": "string",
      "format": "uuid"
    },
    "workflowRunId": {
      "type": "string",
      "format": "uuid"
    },
    "workflowId": {
      "type": "string",
      "format": "uuid"
    },
    "requestor": {
      "type": "string",
      "format": "uuid"
    },
    "title": {
      "type": "string"
    },
    "createdTime": {
      "type": "string",
      "format": "date-time"
    },
    "lastUpdateTime": {
      "type": "string",
      "format": "date-time"
    },
    "payload": {
      "type": "object"
    },
    "reminderInfo": {
      "type": "object"
    },
    "expiryInfo": {
      "type": "object"
    },
    "type": {
      "type": "string",
      "enum": [
        "Approval",
        "SimpleTask"
      ]
    },
    "status": {
      "type": "string",
      "enum": [
        "InProgress",
        "Pending",
        "Completed",
        "Cancelled"
      ]
    }
  }
}