post
https://production-api.shoutaboutus.com/api/v1/qr-codes/template/update
Update an existing QR code template (identified by id in the body), filling the validated fields and saving. Requires that the template's store has a review-solicitation feature enabled.
Auth: Account — authentication; The endpoint loads the template (own company only, 404 otherwise). Before saving, the store's active plan must have review_solicitation_email or review_solicitation_sms enabled — otherwise the endpoint returns 400. The route is POST./template/update; id comes from the body (the optional {id} method arg is unused by this route).
Rate limit: No rate limit.
Request
- Body:
| Field | Type | Required | Notes |
|---|---|---|---|
id | integer | optional (effectively required) | Template ID; must be an existing QR template. Resolved from body; without it the lookup 404s. |
name | string | required | Max 255. |
template_type | string | required | One of standard, hangtag, custom. |
design_html | string | optional | Nullable. |
design_settings | mixed | optional | Nullable; JSON string is decoded to an object/array (invalid JSON falls back to []). |
design_settings_back | mixed | optional | Nullable; same JSON decoding as design_settings. |
design_html_back | string | optional | Nullable. |
qr_code_id | integer | optional | Nullable; must be an existing QR code. |
Response — { data. } envelope wrapping the controller array:
status(string) —"success".data(object) — the updatedQrCodeTemplatemodel (with includedstoreid/name).message(string) —"QR code template updated successfully".
Errors: 422 on validation failure.
Recent Requests
Log in to see full request history
| Time | Status | User Agent | |
|---|---|---|---|
Retrieving recent requests… | |||
Loading…
