Skip to content

POST /operation/{operation_key}/copy

Copy Operation To Phases

POST
/operation/{operation_key}/copy

Copy an operation's default steps to all matching phases across target products.

Finds every Phase whose operation_key matches operation_key and whose
product_key is in target_product_keys, then replaces that phase's step
sequence with fresh copies of the operation's default_phase_steps:

  • Step records are duplicated with new UUIDs for form_fields.
  • Media files are physically copied to the new step's media folder.
  • can_use_print_template edges are re-created for each new step.

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
{
  
"target_product_keys": [
  
  
"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.