Update the properties of a QR code. For dynamic QR codes, you can update the destination content. For static QR codes, you can update metadata like name and tracking settings.
Visual settings cannot be changed after creation. To change the appearance of a QR code, you must generate a new one using the Generate QR Code endpoint.
Dynamic vs Static Updates
Dynamic QR codes : Can update content_data to change the destination URL
Static QR codes : Can only update metadata (name, tracking_enabled, password)
Path Parameters
The UUID of the QR code to update.
Body Parameters
New content data (for dynamic QR codes only). The structure depends on the content_type of the QR code. See Generate QR Code for content_data formats. Example for URL type: { "url" : "https://example.com/new-destination" }
Update the friendly name for the QR code.
Enable or disable scan tracking for this QR code. When updated, this also syncs to the associated short URL if one exists.
Set or update password protection. Requirements:
Minimum 8 characters
Must meet password complexity requirements
Set to false to remove password protection.
Update the expiration date (ISO 8601 format).
UTM Campaigns & Universal Attribution
UUID of a saved UTM template. When provided, automatically resolves and attaches campaign attribution parameters to the destination URL.
Update campaign source (e.g. newsletter, billboard).
Update campaign medium (e.g. print, qr).
Update campaign name (e.g. summer_launch).
Update paid search keywords or tag keywords.
Update content or creative identifier (e.g. packaging_v2).
Update key-value attribution parameters (e.g. {"affiliate": "partner_a"}).
Mobile & Desktop Deep Linking
Enable or disable intelligent mobile deep linking with automatic device detection for printed QR scans.
Update iOS custom app scheme or App Store destination URL for iPhone/iPad scanners. Pass null or empty string to remove.
Update Android Intent URI or Google Play Store destination URL for Android scanners. Pass null or empty string to remove.
Update custom destination URL for Windows desktop scanners.
Update custom destination URL for macOS desktop scanners.
Parameter Forwarding & Routing
Enable or disable query parameter forwarding to preserve incoming UTMs upon scan.
Update country-specific destination rules for international QR scans.
Update browser language rules based on scanner Accept-Language headers.
Update dayparting and schedule rotation settings (enabled, timezone, timezone_mode, fallback_url, rules).
Retargeting Pixels & Tracking
Update connected retargeting pixel IDs (Meta, GA4, GTM, TikTok, LinkedIn, Twitter/X). Automatically syncs with the underlying short link bridge.
Update pixel delivery mode: server (0ms Server CAPI) or client (250ms interstitial).
Toggle the interactive GDPR consent prompt before firing client-side tracking pixels upon QR scan.
Enable or disable closed-loop conversion tracking for this QR code. Attaches signed click tokens for downstream conversion attribution.
Response
Whether the request was successful.
Response containing the updated QR code. The updated QR code object with all properties.
Request Examples
cURL
Node.js
TypeScript
Python
PHP
Go
Java
# Update name and content
curl -X PUT "https://connextify.com/api/v1/qr-codes/770e8400-e29b-41d4-a716-446655440000" \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"content_data": {
"url": "https://example.com/new-destination"
},
"name": "Updated Campaign QR"
}'
# Disable tracking
curl -X PUT "https://connextify.com/api/v1/qr-codes/770e8400-e29b-41d4-a716-446655440000" \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"tracking_enabled": false}'
# Add password protection
curl -X PUT "https://connextify.com/api/v1/qr-codes/770e8400-e29b-41d4-a716-446655440000" \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"password": "securePassword123"}'
const fetch = require ( 'node-fetch' );
const qrCodeId = '770e8400-e29b-41d4-a716-446655440000' ;
const response = await fetch (
`https://connextify.com/api/v1/qr-codes/ ${ qrCodeId } ` ,
{
method: 'PUT' ,
headers: {
'Authorization' : 'Bearer YOUR_API_KEY' ,
'Content-Type' : 'application/json'
},
body: JSON . stringify ({
content_data: { // Optional: update destination (dynamic only)
url: 'https://example.com/new-page'
},
name: 'Updated QR Code Name' , // Optional: update name
tracking_enabled: true // Optional: enable/disable tracking
})
}
);
const data = await response . json ();
if ( data . success ) {
console . log ( 'Updated QR Code:' , data . data . qrCode );
} else {
console . error ( 'Error:' , data . error || data . message );
}
import axios from 'axios' ;
interface UpdateQRCodeRequest {
content_data ?: { url ?: string ; [ key : string ] : any };
name ?: string ;
tracking_enabled ?: boolean ;
password ?: string ;
is_password_protected ?: boolean ;
}
const qrCodeId = '770e8400-e29b-41d4-a716-446655440000' ;
const response = await axios . put (
`https://connextify.com/api/v1/qr-codes/ ${ qrCodeId } ` ,
{
content_data: { url: 'https://example.com/new-page' },
name: 'Updated QR Code'
} as UpdateQRCodeRequest ,
{ headers: { 'Authorization' : 'Bearer YOUR_API_KEY' } }
);
console . log ( 'Updated:' , response . data . data . qrCode );
import requests
qr_code_id = '770e8400-e29b-41d4-a716-446655440000'
response = requests.put(
f 'https://connextify.com/api/v1/qr-codes/ { qr_code_id } ' ,
headers = {
'Authorization' : 'Bearer YOUR_API_KEY' ,
'Content-Type' : 'application/json'
},
json = {
'content_data' : { # Optional: for dynamic QR codes
'url' : 'https://example.com/new-destination'
},
'name' : 'Updated Campaign QR' , # Optional
'tracking_enabled' : True # Optional
}
)
data = response.json()
if data[ 'success' ]:
print ( 'Updated QR Code:' , data[ 'data' ][ 'qrCode' ])
else :
print ( 'Error:' , data[ 'error' ])
<? php
$client = new GuzzleHttp\ Client ();
$qrCodeId = '770e8400-e29b-41d4-a716-446655440000' ;
$response = $client -> request ( 'PUT' , "https://connextify.com/api/v1/qr-codes/{ $qrCodeId }" , [
'headers' => [
'Authorization' => 'Bearer YOUR_API_KEY' ,
'Content-Type' => 'application/json'
],
'json' => [
'content_data' => [
'url' => 'https://example.com/new-destination'
],
'name' => 'Updated QR Code'
]
]);
$data = json_decode ( $response -> getBody (), true );
echo "Updated: " . $data [ 'data' ][ 'qrCode' ][ 'name' ];
?>
package main
import (
" bytes "
" encoding/json "
" fmt "
" net/http "
)
func main () {
qrCodeId := "770e8400-e29b-41d4-a716-446655440000"
url := fmt . Sprintf ( "https://connextify.com/api/v1/qr-codes/ %s " , qrCodeId )
payload := map [ string ] interface {}{
"content_data" : map [ string ] string {
"url" : "https://example.com/new-destination" ,
},
"name" : "Updated QR Code" ,
}
jsonData , _ := json . Marshal ( payload )
req , _ := http . NewRequest ( "PUT" , url , bytes . NewBuffer ( jsonData ))
req . Header . Add ( "Authorization" , "Bearer YOUR_API_KEY" )
req . Header . Add ( "Content-Type" , "application/json" )
resp , _ := http . DefaultClient . Do ( req )
defer resp . Body . Close ()
fmt . Println ( "Response status:" , resp . Status )
}
import java.net.http.HttpClient;
import java.net.http.HttpRequest;
import java.net.URI;
import java.net.http.HttpResponse;
String qrCodeId = "770e8400-e29b-41d4-a716-446655440000" ;
String url = "https://connextify.com/api/v1/qr-codes/" + qrCodeId;
String jsonPayload = """
{
"content_data": {
"url": "https://example.com/new-destination"
},
"name": "Updated QR Code"
}""" ;
HttpClient client = HttpClient . newHttpClient ();
HttpRequest request = HttpRequest . newBuilder ()
. uri ( URI . create (url))
. header ( "Authorization" , "Bearer YOUR_API_KEY" )
. header ( "Content-Type" , "application/json" )
. PUT ( HttpRequest . BodyPublishers . ofString (jsonPayload))
. build ();
HttpResponse < String > response = client . send (request, HttpResponse . BodyHandlers . ofString ());
System . out . println ( response . body ());
Response Examples
200 Success
404 Not Found
400 Invalid ID
400 Temporary QR
403 Access Denied
400 Validation Error
{
"success" : true ,
"data" : {
"qrCode" : {
"id" : "770e8400-e29b-41d4-a716-446655440000" ,
"user_id" : "user-uuid-here" ,
"name" : "Updated Campaign QR" ,
"content_type" : "url" ,
"content_data" : {
"url" : "https://example.com/new-destination"
},
"visual_settings" : {
"foregroundColor" : "#1a1a1a" ,
"backgroundColor" : "#ffffff" ,
"size" : 400
},
"is_dynamic" : true ,
"tracking_enabled" : true ,
"short_url_id" : "550e8400-e29b-41d4-a716-446655440000" ,
"scan_count" : 523 ,
"is_password_protected" : false ,
"created_at" : "2024-01-15T10:30:00.000Z" ,
"updated_at" : "2024-01-21T09:15:00.000Z"
}
}
}
{
"success" : false ,
"error" : "QR code not found" ,
"code" : "NOT_FOUND"
}
{
"success" : false ,
"error" : "Invalid QR code ID format. Please provide a valid UUID." ,
"code" : "INVALID_INPUT"
}
{
"success" : false ,
"error" : "Temporary QR codes cannot be updated. Please sign in to save and manage QR codes permanently." ,
"code" : "INVALID_INPUT"
}
{
"success" : false ,
"error" : "You do not have permission to access this resource" ,
"code" : "ACCESS_DENIED"
}
{
"success" : false ,
"error" : "Password must be at least 8 characters" ,
"code" : "VALIDATION_ERROR"
}
Use Cases
Update campaign destination
Change where a dynamic QR code redirects during a campaign. async function updateCampaignDestination ( qrCodeId , newUrl ) {
const response = await fetch (
`https://connextify.com/api/v1/qr-codes/ ${ qrCodeId } ` ,
{
method: 'PUT' ,
headers: {
'Authorization' : 'Bearer YOUR_API_KEY' ,
'Content-Type' : 'application/json'
},
body: JSON . stringify ({
content_data: { url: newUrl }
})
}
);
const data = await response . json ();
if ( data . success ) {
console . log ( `QR code now redirects to: ${ newUrl } ` );
return data . data . qrCode ;
} else {
throw new Error ( data . error || data . message || 'Failed to update QR code' );
}
}
// Usage: Switch from pre-launch to launch page
await updateCampaignDestination (
'your-qr-id' ,
'https://example.com/product-launch'
);
Protect sensitive content with a password. import requests
def protect_qr_code ( qr_code_id , password ):
response = requests.put(
f 'https://connextify.com/api/v1/qr-codes/ { qr_code_id } ' ,
headers = { 'Authorization' : 'Bearer YOUR_API_KEY' },
json = { 'password' : password}
)
data = response.json()
if data[ 'success' ]:
print ( f "QR code is now password protected" )
else :
print ( f "Error: { data[ 'error' ] } " )
# Add password
protect_qr_code( 'your-qr-id' , 'securePassword123' )
Remove password protection
Remove password from a protected QR code. curl -X PUT "https://connextify.com/api/v1/qr-codes/770e8400-e29b-41d4-a716-446655440000" \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"is_password_protected": false}'
Enable or disable scan analytics. async function toggleTracking ( qrCodeId , enabled ) {
const response = await fetch (
`https://connextify.com/api/v1/qr-codes/ ${ qrCodeId } ` ,
{
method: 'PUT' ,
headers: {
'Authorization' : 'Bearer YOUR_API_KEY' ,
'Content-Type' : 'application/json'
},
body: JSON . stringify ({
tracking_enabled: enabled
})
}
);
const data = await response . json ();
console . log ( `Tracking ${ enabled ? 'enabled' : 'disabled' } for QR code` );
return data ;
}
Get QR Code Retrieve QR code details before updating
Generate QR Code Create a new QR code with different visual settings
Delete QR Code Permanently delete a QR code
Get Short URL View the associated short URL