Skip to content

POST /copy

Copy Product

POST
/product/copy

Create a new product as a deep copy of an existing one.

Duplicates the product record, its full production process (phases + steps),
media folder, print-template assignments, and tag connections under new_code.
Pass by_code=true to look up the original product by code instead of
_key. Returns HTTP 409 if a product with new_code already exists.

All mutations run inside a single ArangoDB transaction.

Emits: (direct transaction — no event class)

Required scope: product:catalogue:create

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
{
  
"original_product": "string",
  
"new_code": "string",
  
"new_description": "string",
  
"by_code": 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.