Duplicate an existing QR code template (by path ID) into a new row under the same store, auto-generating a unique "Copy of …" name. The duplicate counts as a fresh create and is metered against the store's review_qr_code plan allocation.
Auth: Account — authentication; The endpoint loads the original (own company only, 404 otherwise). Before creating the copy, enforceQrCodeTemplateLimit checks the store's review_qr_code allocation — a disabled feature or exhausted hard-stop cap throws FeatureLimitException (HTTP 402). The {id} route segment is digit-constrained and supplied to the request validation via validationData.
Rate limit: No rate limit.
Request
Response — { data. } envelope (HTTP 201) wrapping the controller array:
status(string) —"success".data(object) — the newQrCodeTemplatecopy, carryingname(Copy of <original>, de-duplicated with(n)suffix),store_id,company_id,template_type,design_html,design_settings,design_html_back,design_settings_back,qr_code_id, plusid/created_at/updated_at.message(string) —"QR code template duplicated successfully".
Path params
| Parameter | Type | Required | Notes |
|---|---|---|---|
templateId | integer | Required | Digits only. |
Errors: 422 on validation failure.
| Time | Status | User Agent | |
|---|---|---|---|
Retrieving recent requests… | |||
