Update a code
Changes a code's destination, title, design, domain or back-half, switches what it opens, or archives it.
Send only the fields to change. archived: true stops redirects and frees a plan slot; false restores the code. The destination, title and design stay editable on every plan.
To change what a printed code opens, send kind. "kind": "page" with page makes a hosted page from a template (or from the content you send) and points the code at it; with pageId it opens a page the workspace already has, such as one it opened before. "kind": "redirect" with destinationUrl makes it a website link again. The short link, scans, design and link controls stay. A page the code stops opening stays in the workspace, and counts toward the plan's hosted pages until it's deleted. Routing, A/B tests, UTM parameters and conversion tracking only apply to website links, and tracking pixels only to hosted pages: they're kept and apply again after switching back.
preciseLocation: true asks scanners for their precise location (Pro and Business), see Precise location and geofencing.
Scope: codes:write, for API keys and OAuth tokens alike.
AuthorizationBearer <qrdx_ followed by 40 letters and digits>An API key, sent as Authorization: Bearer qrdx_…. Create one in Settings → API keys & apps: it is shown once. A key acts on the workspace it was created in as its creator, with their current role there, and only within its scopes, the same scopes as OAuth (each operation names the one it needs). API keys.
id*stringThe code's id
1 <= length <= 64application/json- body
The fields to change; at least one
destinationUrl?stringWhere a scan sends people: a full http(s) URL, up to 2,048 characters
1 <= length <= 2048title?|Name shown in the dashboard, up to 100 characters
style?API-only logo fields. customLogo must be an image data URL (as the editor saves logos) or a link to one of the workspace's files: logos from other sites are refused.
domainId?|nullslug?stringA custom back-half for the short link, such as spring-menu (Pro and Business)
archived?booleankind?stringSwitch what the code opens, keeping its short link and scans: redirect (a website link; send destinationUrl with it) or page (a hosted page; send pageId or page)
"redirect""page"pageId?stringWith kind: "page": a hosted page of the workspace the code should open, such as one it opened before
1 <= length <= 64page?With kind: "page": a new hosted page from a template. It counts toward the plan's hosted pages
preciseLocation?booleanAsk scanners for their precise location (Pro and Business). Redirect codes show a short step with Allow and Skip; hosted pages ask on the page. Off by default; turning it off never needs a plan.
The updated code
application/json- response
data*A dynamic QR code
curl -X PATCH 'https://api.qrdx.dev/v1/codes/cm5code0spring0menu00001' \ -H 'Content-Type: application/json' \ -d '{ "destinationUrl": "https://example.com/summer-menu"}'{ "data": { "id": "cm5code0spring0menu00001", "slug": "aB3dE5f", "shortLink": "https://qrdx.dev/q/aB3dE5f", "defaultShortLink": "https://qrdx.dev/q/aB3dE5f", "nfcLink": "https://qrdx.dev/q/aB3dE5f?nfc", "domain": null, "destinationUrl": "https://example.com/summer-menu", "title": "Spring menu", "contentType": "url", "kind": "redirect", "pageId": null, "status": "active", "style": { "fgColor": "#111827", "bgColor": "#ffffff", "bodyPattern": "circle", "cornerEyePattern": "rounded", "level": "Q" }, "scanCount": 128, "lastScannedAt": "2026-01-12T18:04:11.000Z", "archivedAt": null, "createdAt": "2026-01-05T09:30:00.000Z", "updatedAt": "2026-01-05T09:30:00.000Z", "organizationId": null, "preciseLocation": false }}Last updated on