Qr codes

Update a QR code

PATCH
/qr-codes/{id}

Changes any of the listed fields. For dynamic codes, setting targetUrl changes where every printed copy sends people, effective immediately.

Authorization

bearerAuth
headerAuthorizationBearer <token>

API key from Settings → API keys, sent as Authorization: Bearer ezqr_…. Requires the Max plan.

Path Parameters

id*string

The QR code's id

Formatuuid

Request Body

application/json
  1. body
name?string
Length1 <= length
content?string
targetUrl?|
Formaturi
isActive?boolean

false pauses the code

style?|null
folderId?|
Formatuuid
domainId?|
Formatuuid
abTestConfig?|null
geoRules?|null
smartRules?|null
password?string

Require a password before redirecting

Length4 <= length <= 128
removePassword?boolean
scheduledStart?|
Formatdate-time
expiresAt?|
Formatdate-time

Response Body

The updated QR code

application/json
  1. response
data*
curl -X PATCH 'https://ez-qr.com/api/v1/qr-codes/497f6eca-6276-4993-bfeb-53cbbbba6f08' \  -H 'Content-Type: application/json' \  -d '{}'
{  "data": {    "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",    "name": "string",    "type": "static",    "contentType": "string",    "content": "string",    "targetUrl": "string",    "shortCode": "string",    "style": {},    "isActive": true,    "totalScans": 0,    "scheduledStart": "2019-08-24T14:15:22Z",    "expiresAt": "2019-08-24T14:15:22Z",    "createdAt": "2019-08-24T14:15:22Z",    "updatedAt": "2019-08-24T14:15:22Z"  }}