{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/azure-logic-apps/json-schema/azure-logic-apps-workflow-run-schema.json",
  "title": "WorkflowRun",
  "description": "The workflow run.",
  "x-generated": "2026-11-04",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/_superseded/azure-logic-apps-workflowrunoperations-api-openapi.yml#/components/schemas/WorkflowRun",
  "allOf": [
    {
      "$ref": "#/$defs/SubResource"
    }
  ],
  "properties": {
    "name": {
      "description": "Gets the workflow run name.",
      "readOnly": true,
      "type": "string"
    },
    "properties": {
      "$ref": "#/$defs/WorkflowRunProperties",
      "description": "The workflow run properties.",
      "x-ms-client-flatten": true
    },
    "type": {
      "description": "Gets the workflow run type.",
      "readOnly": true,
      "type": "string"
    }
  },
  "type": "object",
  "$defs": {
    "ContentHash": {
      "description": "The content hash.",
      "properties": {
        "algorithm": {
          "description": "The algorithm of the content hash.",
          "type": "string"
        },
        "value": {
          "description": "The value of the content hash.",
          "type": "string"
        }
      },
      "type": "object"
    },
    "ContentLink": {
      "description": "The content link.",
      "properties": {
        "contentHash": {
          "$ref": "#/$defs/ContentHash",
          "description": "The content hash."
        },
        "contentSize": {
          "description": "The content size.",
          "format": "int64",
          "type": "integer"
        },
        "contentVersion": {
          "description": "The content version.",
          "type": "string"
        },
        "metadata": {
          "$ref": "#/$defs/Object",
          "description": "The metadata."
        },
        "uri": {
          "description": "The content link URI.",
          "type": "string"
        }
      },
      "type": "object"
    },
    "Correlation": {
      "description": "The correlation property.",
      "properties": {
        "clientTrackingId": {
          "description": "The client tracking id.",
          "type": "string"
        }
      },
      "type": "object"
    },
    "Object": {
      "properties": {},
      "type": "object"
    },
    "ParameterType": {
      "description": "The parameter type.",
      "enum": [
        "NotSpecified",
        "String",
        "SecureString",
        "Int",
        "Float",
        "Bool",
        "Array",
        "Object",
        "SecureObject"
      ],
      "type": "string",
      "x-ms-enum": {
        "modelAsString": true,
        "name": "ParameterType"
      }
    },
    "ResourceReference": {
      "description": "The resource reference.",
      "properties": {
        "id": {
          "description": "The resource id.",
          "type": "string"
        },
        "name": {
          "description": "Gets the resource name.",
          "readOnly": true,
          "type": "string"
        },
        "type": {
          "description": "Gets the resource type.",
          "readOnly": true,
          "type": "string"
        }
      },
      "type": "object"
    },
    "SubResource": {
      "description": "The sub resource type.",
      "properties": {
        "id": {
          "description": "The resource id.",
          "readOnly": true,
          "type": "string"
        }
      },
      "x-ms-azure-resource": true
    },
    "WorkflowOutputParameter": {
      "allOf": [
        {
          "$ref": "#/$defs/WorkflowParameter"
        }
      ],
      "description": "The workflow output parameter.",
      "properties": {
        "error": {
          "$ref": "#/$defs/Object",
          "description": "Gets the error.",
          "readOnly": true
        }
      },
      "type": "object"
    },
    "WorkflowParameter": {
      "description": "The workflow parameters.",
      "properties": {
        "description": {
          "description": "The description.",
          "type": "string"
        },
        "metadata": {
          "$ref": "#/$defs/Object",
          "description": "The metadata."
        },
        "type": {
          "$ref": "#/$defs/ParameterType",
          "description": "The type."
        },
        "value": {
          "$ref": "#/$defs/Object",
          "description": "The value."
        }
      },
      "type": "object"
    },
    "WorkflowRunProperties": {
      "description": "The workflow run properties.",
      "properties": {
        "code": {
          "description": "Gets the code.",
          "readOnly": true,
          "type": "string"
        },
        "correlation": {
          "$ref": "#/$defs/Correlation",
          "description": "The run correlation."
        },
        "correlationId": {
          "description": "Gets the correlation id.",
          "readOnly": true,
          "type": "string"
        },
        "endTime": {
          "description": "Gets the end time.",
          "format": "date-time",
          "readOnly": true,
          "type": "string"
        },
        "error": {
          "$ref": "#/$defs/Object",
          "description": "Gets the error.",
          "readOnly": true
        },
        "outputs": {
          "additionalProperties": {
            "$ref": "#/$defs/WorkflowOutputParameter",
            "description": "The workflow output parameter."
          },
          "description": "Gets the outputs.",
          "readOnly": true,
          "type": "object"
        },
        "response": {
          "$ref": "#/$defs/WorkflowRunTrigger",
          "description": "Gets the response of the flow run.",
          "readOnly": true
        },
        "startTime": {
          "description": "Gets the start time.",
          "format": "date-time",
          "readOnly": true,
          "type": "string"
        },
        "status": {
          "$ref": "#/$defs/WorkflowStatus",
          "description": "Gets the status.",
          "readOnly": true
        },
        "trigger": {
          "$ref": "#/$defs/WorkflowRunTrigger",
          "description": "Gets the fired trigger.",
          "readOnly": true
        },
        "waitEndTime": {
          "description": "Gets the wait end time.",
          "format": "date-time",
          "readOnly": true,
          "type": "string"
        },
        "workflow": {
          "$ref": "#/$defs/ResourceReference",
          "description": "Gets the reference to workflow version.",
          "readOnly": true
        }
      },
      "type": "object"
    },
    "WorkflowRunTrigger": {
      "description": "The workflow run trigger.",
      "properties": {
        "code": {
          "description": "Gets the code.",
          "readOnly": true,
          "type": "string"
        },
        "correlation": {
          "$ref": "#/$defs/Correlation",
          "description": "The run correlation."
        },
        "endTime": {
          "description": "Gets the end time.",
          "format": "date-time",
          "readOnly": true,
          "type": "string"
        },
        "error": {
          "$ref": "#/$defs/Object",
          "description": "Gets the error.",
          "readOnly": true
        },
        "inputs": {
          "$ref": "#/$defs/Object",
          "description": "Gets the inputs.",
          "readOnly": true
        },
        "inputsLink": {
          "$ref": "#/$defs/ContentLink",
          "description": "Gets the link to inputs.",
          "readOnly": true
        },
        "name": {
          "description": "Gets the name.",
          "readOnly": true,
          "type": "string"
        },
        "outputs": {
          "$ref": "#/$defs/Object",
          "description": "Gets the outputs.",
          "readOnly": true
        },
        "outputsLink": {
          "$ref": "#/$defs/ContentLink",
          "description": "Gets the link to outputs.",
          "readOnly": true
        },
        "scheduledTime": {
          "description": "Gets the scheduled time.",
          "format": "date-time",
          "readOnly": true,
          "type": "string"
        },
        "startTime": {
          "description": "Gets the start time.",
          "format": "date-time",
          "readOnly": true,
          "type": "string"
        },
        "status": {
          "$ref": "#/$defs/WorkflowStatus",
          "description": "Gets the status.",
          "readOnly": true
        },
        "trackedProperties": {
          "$ref": "#/$defs/Object",
          "description": "Gets the tracked properties.",
          "readOnly": true
        },
        "trackingId": {
          "description": "Gets the tracking id.",
          "readOnly": true,
          "type": "string"
        }
      },
      "type": "object"
    },
    "WorkflowStatus": {
      "description": "The workflow status.",
      "enum": [
        "NotSpecified",
        "Paused",
        "Running",
        "Waiting",
        "Succeeded",
        "Skipped",
        "Suspended",
        "Cancelled",
        "Failed",
        "Faulted",
        "TimedOut",
        "Aborted",
        "Ignored"
      ],
      "type": "string",
      "x-ms-enum": {
        "modelAsString": true,
        "name": "WorkflowStatus"
      }
    }
  }
}