Skip to main content

Rerun Workflow

Endpoint: POST /api/workflow/{workflowId}/rerun

Reruns an ongoing or terminal workflow from a specific reRunFromTaskId task, or reruns a terminal workflow execution from the start, with the option to supply updated inputs. When invoked, all previous reRunFromTaskId task attempts will be marked as canceled even if they have been completed successfully.

Path parameters

ParameterDescriptionTypeRequired/ Optional
workflowIdThe execution ID of the workflow to be rerun.stringRequired.

Request body

Format the request as an object containing the following parameters.

ParameterDescriptionTypeRequired/ Optional
reRunFromTaskIdThe unique identifier of the task to rerun the workflow from.stringOptional.
reRunFromWorkflowIdThe unique identifier of the workflow to be rerun.stringOptional.
correlationIdA unique identifier used to correlate the current workflow execution with other executions of the same workflow.stringOptional.
taskInputThe task inputs for the task identified in reRunFromTaskId. If unspecified, the same inputs from the previous run will be used.objectOptional.
workflowInputThe workflow inputs. If unspecified, the same inputs from the previous run will be used.objectOptional.

Example

{
"correlationId": "string",
"reRunFromTaskId": "string",
"reRunFromWorkflowId": "string",
"taskInput": {
"additionalProp1": {},
"additionalProp2": {},
"additionalProp3": {}
},
"workflowInput": {
"additionalProp1": {},
"additionalProp2": {},
"additionalProp3": {}
}
}

Response

Returns the supplied workflowId.

Examples

Rerun workflow from a task

Request

curl -X 'POST' \
'https://<YOUR_CLUSTER>/api/workflow/3163f2e3-d4a9-11ef-a114-0af1b159704e/rerun' \
-H 'accept: text/plain' \
-H 'X-Authorization: <TOKEN>' \
-H 'Content-Type: application/json' \
-d '{
"reRunFromTaskId": "87799dc8-d4b8-11ef-a114-0af1b159704e"
}'

Response

3163f2e3-d4a9-11ef-a114-0af1b159704e