Skip to content

PUT /queue

Update Queue

PUT
/queue

Replace the ordered sequence of a site or operator queue.

Accepts a Queue document with the new ordered work_orders or jobs list.
When updating the site-level queue (no subqueue_target_key), also
re-sorts all subordinate job queues to match the new work order order.

Emits: (direct transaction — no event class)
Required scope: production:queue:update

Authorizations

OAuth2PasswordBearer
password Flow
Token URL"/api/auth"
Scopes:
  • "admin"User can access and edit users and system settings
  • "library"User can access and edit products
  • "production"User can access and edit production plans
  • "operator"User can access the operator panel and make production declarations

Request Body

application/json
JSON
{
  
"_id": "string",
  
"_key": "string",
  
"_rev": "string",
  
"type": "s",
  
"site_key": "site-main",
  
"subqueue_target_key": "usr-0042",
  
"work_orders": [
  
  
[
  
  
  
"wo-2026-001",
  
  
  
"wo-2026-002"
  
  
]
  
],
  
"jobs": [
  
  
[
  
  
  
"job-00123",
  
  
  
"job-00456"
  
  
]
  
],
  
"independent": false
}

Responses

Successful Response

application/json
JSON
{
  
"status": 200,
  
"message": "string",
  
"detail": "string"
}

Samples

Powered by VitePress OpenAPI

Released under the Apache 2.0 License.