This API endpoint allows you to fetch a list of work queues in Octopi.
Code | Description |
---|---|
404 | Not found. |
400 | Invalid request. |
500 | Server crashed. |
curl "https://app.octopi.co/api/v1/work_queues.json" -X GET -H "Accept: application/json" -H "Content-Type: application/json" -H "Authorization: Token token=ADD TOKEN HERE" -d '{"exclude_voyage_queues":"true"}'
{ "work_queues" : [ { "active" : true, "voyage" : { "name" : null, "id" : null }, "queue_type" : "General Cargo", "terminal" : { "name" : "Blue Yard", "id" : 31 }, "name" : "General Cargo: Blue Yard", "yard_area" : { "id" : null, "name" : null }, "id" : 304 }, { "yard_area" : { "id" : null, "name" : null }, "id" : 48, "active" : true, "name" : "Terminal: Blue Yard", "queue_type" : "Terminal", "voyage" : { "id" : null, "name" : null }, "terminal" : { "id" : 31, "name" : "Blue Yard" } } ], "actions" : { "index" : { "url" : "http://app.octopi.co/api/v1/work_queues.json", "method" : "GET" } } }
Param name | Description |
---|---|
exclude_voyage_queues optional |
Pass this parameter if you want to exclude voyage queues from the list. Validations:
|