Skip to main content

Queue capabilities

POST 

/v2/capabilities/enqueue

Queues an ordered list of capabilities and waits until Cortex has accepted or rejected each. Cortex is the only validator: it checks names, params, types and limits, and says why it rejects. A request in which a capability is rejected answers 422 with a result for every capability; the capabilities accepted before the first rejection stay queued. Needs Cortex to run the capability behavior tree.

Request​

Responses​

200One result per capability, with the id of each.
409Cortex refused the whole request: it is stopped, or another request is in flight
422The body is invalid, or Cortex rejected a capability. In the second case the body holds a result for every capability
500Internal server error
503Cortex is not running the capability behavior tree
504Cortex did not answer in time. Whether anything was queued is unknown: read the queue state