Create a mug design draft
create_design_linkTurns a design description into a link that opens the LivaGlow designer with the finished draft (texts, cliparts, background, photo placeholder, optional template). Nothing is stored or ordered: the customer opens the link, checks the 3D preview, uploads their photo if a placeholder is present, and orders. Texts are placed automatically (centred column) unless x/y are given; with a template, texts replace the template's text slots in order. Photos cannot be passed; use photo:{shape} to reserve a placeholder. Call get_design_options first for valid fonts, cliparts and templates.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| items | No | Texts and cliparts in top-to-bottom order | |
| photo | No | Reserve a photo placeholder the customer fills in the designer | |
| layout | No | Column for automatically placed items (default: opposite the photo, else center) | |
| template | No | Template id from get_design_options (optional) | |
| background | No | Background preset id (e.g. "creme", "sonnenuntergang") or {kind:"solid",color:"#rrggbb"} or {kind:"gradient",from:"#rrggbb",to:"#rrggbb",angle:135} |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | Designer link with the draft | |
| next | No | ||
| price | Yes | ||
| locale | Yes | ||
| summary | Yes | ||
| warnings | Yes | ||
| previewUrl | Yes | PNG of the flat print area | |
| previewNote | No | ||
| elementCount | No | ||
| hasPhotoPlaceholder | Yes |