setWorkflowTargets
Since pyck v0.27.0
Replace the target surfaces of a running workflow execution. Requires the workflow’s state to implement the WorkflowTargetsSetter SDK interface. Passing an empty list clears the search attribute so the workflow no longer matches any targets-based filter.
Served by: workflow
Arguments
Section titled “Arguments”| Name | Type | Default | Description |
|---|---|---|---|
input |
SetWorkflowTargetsInput! |
Returns
Section titled “Returns”Example
Section titled “Example”Replaces the target client surfaces (WEB, MOBILE, SETUP) of a running workflow execution. Passing an empty list clears the search attribute so the workflow no longer matches any targets-based filter.
mutation SetWorkflowTargets($input: SetWorkflowTargetsInput!) { setWorkflowTargets(input: $input) { targets }}Variables
{ "input": { "runID": "<run ID>", "targets": [ "WEB", "MOBILE" ], "workflowID": "<workflow execution ID>" }}