JOC API

Version 2.6.5

Download RAML
JOC API
/orders
POST

Returns a collection of orders filtered by workflow or order state


Parameters in the POST body schema

Name Type Description Example Default
controllerId required, string Controller ID myController
orderIds optional, array Filtered response by a collection of orderIds
If this parameter is specified then parameters such as workflowIds, states, folders and regex where applicable are ignored.
[
"myOrder",
"myOrder2"
]
workflowIds optional, object Filtered response by a collection of workflows specified by its path and optional version
If this parameter is specified then parameters such as folders, states, regex and agentName 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
versionId 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
}]
compact optional, boolean A compact response is returned if this parameter is true false
regex optional, string Regular expression to filter the collection .*
states optional, array Filtered all orders with states such as
  • PENDING
  • SCHEDULED
  • INPROGRESS
  • RUNNING
  • SUSPENDED
  • WAITING
  • PROMPTING
  • FAILED
  • BLOCKED
["SUSPENDED"]
stateDateFrom optional, string The value has multiple formats
  • Filters those orders whose current status is younger than the specified point in time
  • See the dateTo parameter for the possible formats
1d
stateDateTo optional, string The value has multiple formats
  • Filters those orders whose current status is older than the specified point in time
  • See the dateTo parameter for the possible formats
1d
dateTo optional, string The value has multiple formats
  • Filters Orders whose schedule is before a date.
  • an ISO 8601 date format with the time offset and milliseconds being optional, e.g.
    • YYYY-MM-DDThh:mm:ss[.s][Z (Z means +00)]
    • YYYY-MM-DDThh:mm:ss[.s][+01:00]
    • YYYY-MM-DDThh:mm:ss[.s][+0100]
    • YYYY-MM-DDThh:mm:ss[.s][+01]
  • a format for a period relative to the current time, e.g. 6h, 12h, 1d, 1w that specifies the quantity followed by a qualifier:
    • s (seconds)
    • m (minutes)
    • h (hours)
    • d (days)
    • w (weeks)
    • M (months)
    • y (years)
  • a time offset is optional (e.g. 2d+02:00)
    • it can also be specified with the parameter timeZone
    • if timeZone is undefined then UTC is used
  • the value 0 indicates the current time
1d
timeZone optional, string
  • If this parameter is set then it beats the time offset of absolute dates in dateTo
  • See here the list for available time zones.
Europe/Berlin
limit optional, integer Limits the number of resulting items, -1=unlimited 5000 10000