Skip to main content

Update QR Code

Update an existing QR code. Only the fields you include will be updated.

PATCH/qr-codes/:id

Headers

HeaderRequiredDescription
X-API-KeyRequiredYour API key
Content-TypeRequiredapplication/json
QR-VersionOptionalAPI version (e.g., 2026-02-16)

Path Parameters

ParameterTypeDescription
idstringThe QR code ID

Body Parameters

All fields are optional. Only include the fields you want to update.

ParameterTypeRequiredDescription
namestringOptionalNew name for the QR code
contentobjectOptionalNew content data
designobjectOptionalNew design options (merged with existing). Try the Builder.
activebooleanOptionalEnable or disable the QR code
folder_idstring | nullOptionalMove to folder ID, or null to unassign (place in root). Requires Folders feature.
info
  • The QR code image and short URL remain the same after updates
  • Updating content changes where the QR code redirects
  • Design updates are merged with the existing design — you only need to send the fields you want to change
  • Set active: false to temporarily disable a QR code without deleting it

Request

curl -X PATCH "https://integration-api.qr-build.com/qr-codes/qr-aBc123XyZ9" \
-H "X-API-Key: qrb_live_your_api_key_here" \
-H "Content-Type: application/json" \
-d '{
"content": {
"type": "url",
"url": "https://new-destination.com"
}
}'

Response

{
"object": "qr",
"success": true,
"data": {
"id": "qr-aBc123XyZ9",
"name": "My Website QR",
"type": "url",
"content": {
"url": "https://new-destination.com"
},
"design": {
"dots": { "style": "rounded", "color": "#000000" },
"corners": { "style": "extra-rounded", "color": "#000000" },
"corners_dot": { "style": "dot", "color": "#000000" },
"background": { "color": "#ffffff" },
"logo_url": null,
"margin": 10
},
"active": true,
"short_url": "https://qr-build.io/qr-aBc123XyZ9",
"created_at": "2026-02-16T10:30:00Z",
"updated_at": "2026-02-16T11:45:00Z"
},
"message": "QR code updated successfully"
}

Error — Not Found

{
"success": false,
"error": {
"code": "QR_NOT_FOUND",
"message": "QR code not found"
}
}