codes

Change destination (retarget)

Points the code at a new URL. The printed QR and short_url are unchanged — a new destination version becomes active immediately; the previous one is kept in history.

patch/api/v1/codes/{id}

Request

  • Base URL: https://app.qrtap.kg
  • URL: https://app.qrtap.kg/api/v1/codes/{id}
  • Auth: HTTP bearer

Path parameters

idstring uuid required

Code id (UUID) as returned at creation.

Request body

target_urlstring uri required

New destination. http(s) only.

Response

The updated code (with the new target_url).

idstring uuid required
labelstring required
target_urlstring nullable required

Current destination URL.

external_refstring nullable required
groupstring nullable required
statestring required

Lifecycle state; API-created codes are deployed.

design_template_idstring uuid nullable required
slugstring required

Short-link slug. The QR encodes short_url = base + / + slug.

short_urlstring uri required

Stable printed link encoded in the QR. Never changes on retarget.

png_urlstring uri required

Artifact URL (PNG). Requires the same Bearer auth.

svg_urlstring uri required

Artifact URL (SVG). Requires the same Bearer auth.

scansinteger

All-time non-bot scan count. Present only when listing with include=stats.

created_atstring date-time required
updated_atstring date-time required

Changes

No recorded changes to this operation across all 1 revision of this API.