Edit QR Code
Changes a QR code created with POST /v1/qr, or any link’s QR code. Send url_id and only what changes: omitted fields, also inside content and design, keep their value. PATCH behaves the same.
PUT and PATCH behave the same.
How it works
Sendurl_id and only what changes. Everything you leave out keeps its value, also inside content and design: {"design": {"frame_layout": "balloon"}} changes the frame and keeps colors, pattern and eyes.
- Design and logo: the keys you send go on top of the current design. Without
logothe current logo stays. Aqr_template_idrestarts from that template. - Static types: the
contentfields you send replace those fields only. - PDF: a new
pdf_datareplaces the file (andpdf_namenames the new one). The old file is deleted. - Link settings:
url,domain_id,custom_slugand the other link fields work as in Edit Link. - The type of a QR code cannot change, and a QR code never moves to another workspace.
Request body
Response
The same as Create QR Code, withdata.created set to false.
Errors
As in Create QR Code, plus400 when only url_id is sent, 404 when the QR code is not in your organization, and 422 when type is not the current one.Authorizations
Body
Only url_id is required, plus at least one field to change. Omitted fields keep their value, also inside content and design. The type cannot change.
Styles of the QR code, as in the QR designer. Send only what you want to change: the rest comes from qr_template_id, else from the QR being edited, else from the defaults. On a Free plan only the first two values of module_style, eye_frame_style and eye_ball_style, and none or box for frame_layout, can be saved.