Cancel/Re-execute Scheduled Task. Tasks that have failed or are completed cannot be modified.
POST/api/v1/automation/setTaskStatus| Parameter | Type | Required | Description |
|---|---|---|---|
| ids | array | Yes | Task IDs, can be obtained from the scheduled task list |
| status | int | Yes | Status: 0 Re-execute;5 Cancel Execution |
{
"ids": ["xxx","xxx"],
"status": 5
}
{
"code": 200,
"data": {
"success": ["xxx"], // ID of the successful execution
"fail": ["xxx"], // ID of the failed execution
"fail_reason": {
"xxx": "xxxxx" // Failure reason
}
},
"message": "Success"
}