Skip to content

PATCH /operation/

Update Operation

PATCH
/operation/{operation_key}

Partially update an operation template, reconciling step media connections.

Diffs the incoming default_phase_steps[].media lists against the existing
ones and updates media_connection edges accordingly:

  • New media keys are inserted as edges from the operation to each Media doc.
  • Removed media keys are disconnected; orphaned Media documents (no remaining
    connections) are deleted from disk and the database.

All mutations run inside a single ArangoDB transaction.

Emits: (direct transaction — no event class)

Required scope: process:template: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

Parameters

Path Parameters

operation_key*
Type
string
Required

Request Body

application/json
JSON
{
  
"additionalProperties": "string"
}

Responses

Successful Response

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

Samples

Powered by VitePress OpenAPI

Released under the Apache 2.0 License.