PUT
/
links
/
upsert
/
{type}
Upsert a link(QR code)
curl --request PUT \
  --url https://api.supaqr.com/links/upsert/{type} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "data": {
    "url": "https://example.com"
  },
  "linkOptions": {
    "domain": "iqr.im",
    "key": "<string>",
    "tags": [
      "tagId"
    ],
    "comment": "<string>",
    "password": "<string>",
    "expiration": {
      "time": "2025-12-31T23:59:59Z",
      "url": "https://example.com"
    },
    "utm": {
      "source": "google",
      "medium": "cpc",
      "campaign": "menu",
      "term": "pizza",
      "content": "menu QR code",
      "ref": "yoursite.com"
    },
    "option": {
      "isWaterMark": false,
      "watermarkText": "supaqr",
      "isScreenshotProtected": false
    },
    "previewData": {
      "title": "SupaQR",
      "desc": "Create Your Free Custom Dynamic QR Codes for link, images or PDF files",
      "image": "https://example.com/abc.png"
    },
    "Targeting": {
      "targetType": "device",
      "targetDatas": {
        "ios": "https://example.com",
        "android": "https://example.com"
      }
    }
  },
  "qrOptions": {
    "correctLevel": 2,
    "space": 2,
    "version": -1,
    "frame": {
      "type": "preset",
      "value": "https://file.supaqr.com/example.png",
      "options": {
        "code_rect": [
          100
        ]
      },
      "add_texts": [
        {
          "pos": [
            2
          ],
          "color": "#FFFFFF",
          "size": 100,
          "align": "start",
          "font": "Roboto",
          "content": "<string>",
          "prefix": "<string>"
        }
      ]
    },
    "patterns": {
      "background": {
        "type": "single",
        "value": "#000000"
      },
      "body": {
        "style_id": "Simple",
        "type": "single",
        "value": "#000000",
        "direction": "Horizontal"
      },
      "eye": {
        "style_id": "1",
        "type": "same",
        "value": "#000000",
        "direction": "Horizontal"
      }
    },
    "logo": {
      "type": "image",
      "value": "<string>",
      "location": "Center",
      "shape": "Squared",
      "size": 2,
      "hasBackground": true,
      "shadow": false
    }
  }
}'
{}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

type
string
required

Body

application/json

Response

200
application/json

The response is of type object.