Update QR template

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:
FieldTypeRequiredNotes
idintegeroptional (effectively required)Template ID; must be an existing QR template. Resolved from body; without it the lookup 404s.
namestringrequiredMax 255.
template_typestringrequiredOne of standard, hangtag, custom.
design_htmlstringoptionalNullable.
design_settingsmixedoptionalNullable; JSON string is decoded to an object/array (invalid JSON falls back to []).
design_settings_backmixedoptionalNullable; same JSON decoding as design_settings.
design_html_backstringoptionalNullable.
qr_code_idintegeroptionalNullable; must be an existing QR code.

Response{ data. } envelope wrapping the controller array:

  • status (string) — "success".
  • data (object) — the updated QrCodeTemplate model (with included store id/name).
  • message (string) — "QR code template updated successfully".

Errors: 422 on validation failure.

Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…
Body Params
integer
string
string
string
design_settings
object
string
design_settings_back
object
integer
Response

Language
Credentials
Bearer
JWT
URL
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json