{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/microsoft-purview/json-schema/microsoft-purview-workflow-run-schema.json",
  "title": "WorkflowRun",
  "x-generated": "2026-11-05",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/microsoft-purview-workflow-run-api-openapi.yml#/components/schemas/WorkflowRun",
  "type": "object",
  "properties": {
    "id": {
      "type": "string",
      "format": "uuid"
    },
    "workflowId": {
      "type": "string",
      "format": "uuid"
    },
    "startTime": {
      "type": "string",
      "format": "date-time"
    },
    "requestor": {
      "type": "string",
      "format": "uuid"
    },
    "userRequestId": {
      "type": "string",
      "format": "uuid"
    },
    "runPayload": {
      "type": "object"
    },
    "status": {
      "type": "string",
      "enum": [
        "InProgress",
        "Completed",
        "Canceling",
        "CancellationFailed",
        "Cancelled",
        "Failed",
        "NotStarted"
      ]
    },
    "endTime": {
      "type": "string",
      "format": "date-time"
    },
    "cancelTime": {
      "type": "string",
      "format": "date-time"
    },
    "cancelComment": {
      "type": "string"
    }
  }
}