Update a code
Changes a code's destination, title, design, domain or back-half, 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.
oauth2 codes:writeAuthorizationBearer <token>An OAuth 2.0 access token, sent as Authorization: Bearer <token>. Register an app in Settings → Developers, send the user through authorization (PKCE S256), then exchange the code for a token. Access tokens last 1 hour; refresh tokens 30 days. Step by step.
Scope: codes:write
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?|nulldomainId?|nullslug?stringA custom back-half for the short link, such as spring-menu (Pro and Business)
archived?booleanThe 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", "domain": null, "destinationUrl": "https://example.com/summer-menu", "title": "Spring menu", "contentType": "url", "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 }}Last updated on