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
Mediadoc. - Removed media keys are disconnected; orphaned
Mediadocuments (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
Requiredstring
Request Body
application/json
JSON "additionalProperties": "string"
{
}
Responses
Successful Response
application/json
JSON "status": 200, "message": "string", "detail": "string"
{
}