Summary
Revert To a Task
Description
Revert a Job from current Task to the target Task by Job ID and Task Names.
Route
POST /workflow_engine/revertToTask
Roles
admin
apiwrite
Parameters
DetailsExampleSchema
Name |
Type |
Required |
Description |
job_id |
string |
yes |
ID of the Job to revert. |
current_task |
string |
yes |
Name of the current Task. |
target_task |
string |
yes |
Name of the Target Task. |
Copied to Clipboard
{
"job_id": "pariatur consectetur fugiat dolore ut",
"current_task": "velit ullamco eiusmod enim in",
"target_task": "quis"
}
Copied to Clipboard
{
"type": "object",
"properties": {
"job_id": {
"description": "ID of the Job to revert.",
"type": "string"
},
"current_task": {
"description": "Name of the current Task.",
"type": "string"
},
"target_task": {
"description": "Name of the Target Task.",
"type": "string"
}
},
"required": [
"job_id",
"current_task",
"target_task"
],
"additionalProperties": false
}
Return
DetailsExampleSchema
Name |
Type |
Description |
reverted_job |
object |
Job after the revert. |
Copied to Clipboard
{
"reverted_job": true
}
Copied to Clipboard
{
"description": "Job after the revert.",
"type": "object",
"properties": {
"reverted_job": true
},
"required": [
"reverted_job"
],
"additionalProperties": false
}