Use the workflowAutomationStartWorkflowRun mutation to start a workflow run for a specified workflow definition.
중요
For limits on concurrent workflow runs and steps per run, see Workflow System Limits.
Input parameters
The following parameters are available for this API.
Parameter | Data type | Description |
|---|---|---|
| String | (Required) Your account ID. |
| Enum | (Optional) The scope type ( |
| String | (Required) The name of the workflow definition to run. |
| String | (Optional) The scope type of the workflow definition ( |
| Int | (Optional) The version of the workflow definition to run. |
| Array | (Optional) Key-value pairs to pass as inputs to the workflow. |
| String | (Optional) A UUID that ensures idempotency of the request. The server rejects non-UUID values (for example, |
| Enum | (Optional) Controls logging during execution. Values: |
logLevel option
The logLevel option controls the amount of information the workflow generates during execution.
NONE(default): Generates no log outputs.INFO: Outputs step-level information.DEBUG: Adds an attribute to the step started logs with all the action step inputs, using the formatworkflowAutomation.inputs.<inputName>: <inputValue>.TRACE: In addition toDEBUGoutput, adds an attribute to the step started logs with all the action step outputs, using the formatworkflowAutomation.outputs.<outputName>: <outputValue>.
Sample request
Use the Query Builder to create and edit a workflow. See NerdGraph API explorer.
mutation { workflowAutomationStartWorkflowRun( definition: { name: "json-parsing", version: 1 } workflowInputs: [ { key: "checkOperational", value: "false" } { key: "checkNonOperational", value: "true" } ] scope: { id: "12345678" } idempotencyKey: "45e65924-5316-479c-a977-f6adfa17e07a" options: { logLevel: INFO } ) { runId }}Sample response
The mutation returns:
runId: The unique identifier for the workflow run. Use this ID withWorkflowRunInfo,SignalWorkflowRun, orStopWorkflowRunAPIs.