JOC API

Version 2.6.5

Download RAML
JOC API
/orders/resume
POST

Resume orders when suspended or failed


Parameters in the POST body schema


Name Type Description Example Default
controllerId required, string Controller ID myController
orderIds optional, array Specified the order ids which should be modified.
If this parameter is specified then the parameters workflowIds, folders and states where applicable are ignored.
[
"daily"
]
workflowIds optional, array[object] Filtered response by a collection of workflows specified by its path and optional version
If this parameter is specified the parameter folders where applicable are ignored.
[{
"path": "/path/to/workflow",
"versionId": "c79caab4-4e72-4818-bae7-902f1037d8b6"
}]
path required, string Field for each item in workflowIds to specify the path of a workflow
version optional, string Field for each in workflowIds to specify the version of a workflow
folders optional, array[object] Limits the result to a collection of folders [{
"folder": "/sos",
"recursive": true
}]
states optional, array Filtered all orders with states such as
  • PENDING
  • SCHEDULED
  • INPROGRESS
  • RUNNING
  • SUSPENDED
  • WAITING
  • PROMPTING
  • FAILED
  • BLOCKED
["SUSPENDED"]
position optional, array or string The position can also be specified by the label of the instruction. [2, "then", 0]
variables optional, object Variables can only be set for resumimg a single order that position is not at the beginning of its workflow's scope.
Otherwise an error is raised.
It change the returned variables of the previous jobs.
An object with key-value pairs. The value can be a string, number or boolean

"variables": {
      "myString": "stringValue",
      "myNumber": 3.14,
      "myBoolean": true
    }
cycleEndTime optional, string A relative cycle end time in seconds 600
auditLog optional, object Object that contains comment, timeSpent and ticketLink.
{
  "comment": "Operational requirement!",
  "timeSpent": 2
}
comment optional, string Field in auditLog to comment this action, e.g. the reason.
timeSpent optional, integer Field in auditLog to enter the time spent in minutes.
ticketLink optional, string Field in auditLog to enter a link to a corresponding ticket.