Create new Design

Creates new designs by cloning an existing design and applying the defined changes. This is useful for creating multiple versions of a design with different logos or placements without needing manual input for each one.

POST /api/design/{designId}/clone

Parameters #

ParameterTypeDescription
designIdintegerThe internal ID of the source design to clone.

Body #

The body contains a list of variations to create. Each variation will result in a new design.

ParameterTypeDescription
variationsarrayA list of variation objects.

Variation Object

ParameterTypeDescription
titlestringThe title for the new design variation.
designLogosarrayA list of logo placements. If empty, the new design will have no logos. To keep logos from the source design, you must explicitly include them here.

Design Logo Object

ParameterTypeDescription
viewstringThe view name (e.g., "FRONT") where the logo should be placed.
logoIdintegerThe ID of the logo to place.
xCoordinatenumberX position of the logo center.
yCoordinatenumberY position of the logo center.
angleRadsnumber(Optional) Rotation angle in radians. Defaults to 0.

Example Request #

{
  "variations": [
    {
      "title": "Variation 1",
      "designLogos": [
        {
          "view": "BACK",
          "logoId": 516208,
          "xCoordinate": 422.23,
          "yCoordinate": 1222.33,
          "angleRads": 0
        }
      ]
    },
    {
      "title": "Variation 2",
      "designLogos": [
        {
          "view": "FRONT",
          "logoId": 516209,
          "xCoordinate": 422.23,
          "yCoordinate": 1222.33,
          "angleRads": 0
        }
      ]
    }
  ]
}

Returns #

Returns a list of the newly created design objects.

[
  {
    "designId": 54322,
    "designItemNo": "MUL123456",
    "title": "Variation 1",
    ...
  },
  {
    "designId": 54323,
    "designItemNo": "MUL123457",
    "title": "Variation 2",
    ...
  }
]