curl -X PATCH "https://api.scanova.io/qr/Qa1b2c3d4e5f6g7h8/url-hash/" \
-H "Authorization: 401f7ac837da42b97f613d789819ff93537bee6a" \
-H "Content-Type: application/json" \
-d '{
"url_hash": "summer-sale-2026"
}'
{
"url_hash": "summer-sale-2026",
"complete_url": "https://scnv.io/summer-sale-2026",
"warning": "Any QR codes already printed with the previous short URL will stop working."
}
QR Codes
Change a QR Code's short-URL slug
PATCH /qr//url-hash/
PATCH
/
qr
/
{qrid}
/
url-hash
/
curl -X PATCH "https://api.scanova.io/qr/Qa1b2c3d4e5f6g7h8/url-hash/" \
-H "Authorization: 401f7ac837da42b97f613d789819ff93537bee6a" \
-H "Content-Type: application/json" \
-d '{
"url_hash": "summer-sale-2026"
}'
{
"url_hash": "summer-sale-2026",
"complete_url": "https://scnv.io/summer-sale-2026",
"warning": "Any QR codes already printed with the previous short URL will stop working."
}
Repoints a Dynamic QR Code’s short URL to a new slug.
A successful change marks the QR Code as using a custom hash and invalidates the landing app’s cache for both the old and the new slug, so the switch takes effect immediately.
PATCH https://api.scanova.io/qr/{qrid}/url-hash/
Authorization: 401f7ac837da42b97f613d789819ff93537bee6a
string
required
The QR Code’s
qrid.string
required
The new slug. Must match
^[a-zA-Z0-9\-_]{3,50}$ and be free on this QR Code’s domain.curl -X PATCH "https://api.scanova.io/qr/Qa1b2c3d4e5f6g7h8/url-hash/" \
-H "Authorization: 401f7ac837da42b97f613d789819ff93537bee6a" \
-H "Content-Type: application/json" \
-d '{
"url_hash": "summer-sale-2026"
}'
{
"url_hash": "summer-sale-2026",
"complete_url": "https://scnv.io/summer-sale-2026",
"warning": "Any QR codes already printed with the previous short URL will stop working."
}
Every QR Code already printed with the previous slug stops working. The old short URL is not kept as a redirect. The API returns this as an explicit
warning field in the success response — surface it to the user rather than swallowing it. Only change a slug for a QR Code that has not been distributed yet.400 means the slug is malformed; 409 means it is already taken on this domain.
Related
- Check hash availability — confirm the slug is free before calling this.
- Generate an available hash — have the server pick a free slug.
- Retrieve a QR Code — read the current
dynamic_url_object.url_hash. - QR Manager overview — the quotas, role permissions, and Trash model shared by every endpoint in this module.
- Management API overview — the auth scheme and quota rules that apply to this endpoint.
Authorizations
Send your Management API key as the raw value of the Authorization header — no "Bearer " or "Token " prefix, and no other characters. Example: Authorization: 401f7ac837da42b97f613d789819ff93537bee6a. A header containing more than one space-separated part is rejected outright. Requests also require the request's Host header to be the management API host (e.g. api.scanova.io) — the same key sent to the regular API host will not authenticate.
Path Parameters
The QR code's qrid — the opaque public identifier returned by the list endpoint, not the numeric id.
Response
Slug changed.
Was this page helpful?