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| Parameter | Type | Description |
|---|---|---|
| designId | integer | The internal ID of the source design to clone. |
The body contains a list of variations to create. Each variation will result in a new design.
| Parameter | Type | Description |
|---|---|---|
| variations | array | A list of variation objects. |
Variation Object
| Parameter | Type | Description |
|---|---|---|
| title | string | The title for the new design variation. |
| designLogos | array | A 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
| Parameter | Type | Description |
|---|---|---|
| view | string | The view name (e.g., "FRONT") where the logo should be placed. |
| logoId | integer | The ID of the logo to place. |
| xCoordinate | number | X position of the logo center. |
| yCoordinate | number | Y position of the logo center. |
| angleRads | number | (Optional) Rotation angle in radians. Defaults to 0. |
{
"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 a list of the newly created design objects.
[
{
"designId": 54322,
"designItemNo": "MUL123456",
"title": "Variation 1",
...
},
{
"designId": 54323,
"designItemNo": "MUL123457",
"title": "Variation 2",
...
}
]