Skip to content

POST /job/update

Update Jobs

POST
/job/update

Apply a batch of job insert, update, or close operations.

Accepts a list of JobUpdate items each specifying an action (insert,
update, close) and a data dict. For each affected work order, recalculates
progress and adjusts queue membership (adds back or removes) based on the
resulting status. All mutations run in a single ArangoDB transaction.

Emits: (direct transaction — no event class)
Required scope: production:job: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
[
  
{
  
  
"action": "update",
  
  
"data": {
  
  
  
"additionalProperties": "string"
  
  
}
  
}
]

Responses

Successful Response

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

Samples

Powered by VitePress OpenAPI

Emits: JobClosed — when a job update or close action triggers job closure

Released under the Apache 2.0 License.