Skip to content
Pyck docs

You are reading the Dev docs (main @ e991a08). They can differ from the released product.Dev docs, not the release

Switch to LatestLatest

setWorkflowTargets

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

Name Type
input SetWorkflowTargetsInput!

SetWorkflowTargetsResponse

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>"
}
}