Update a QR code
curl --request PATCH \
--url https://biq.li/api/v1/qr/{qr} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"title": "<string>",
"payload": {
"long_url": "<string>",
"text": "<string>",
"phone": "<string>",
"message": "<string>",
"ssid": "<string>",
"password": "<string>",
"first_name": "<string>",
"last_name": "<string>",
"organization": "<string>",
"fax": "<string>",
"email": "jsmith@example.com",
"subject": "<string>",
"website": "<string>",
"socials": {
"youtube": "<string>",
"x": "<string>",
"instagram": "<string>",
"tiktok": "<string>",
"linkedin": "<string>"
},
"title": "<string>",
"description": "<string>",
"location": "<string>",
"url": "<string>",
"start": "2023-11-07T05:31:56Z",
"end": "2023-11-07T05:31:56Z",
"app_store_url": "<string>",
"google_play_url": "<string>",
"fallback_url": "<string>"
},
"qr_config": {
"matrixColor": "<string>",
"eyeFrameColor": "<string>",
"eyeColor": "<string>",
"applyGradientToAll": true,
"applyEyeFrameGradientToEye": true,
"showLogo": true
},
"utm": "<string>",
"activates_at": "2023-11-07T05:31:56Z",
"expires_at": "2023-11-07T05:31:56Z",
"geo_rules": [
{
"key": "<string>",
"value": "<string>"
}
],
"device_rules": [
{
"key": "<string>",
"value": "<string>"
}
],
"platform_rules": [
{
"key": "<string>",
"value": "<string>"
}
],
"exp_clicks_rule": {},
"tag_ids": [
"<string>"
]
}
'import requests
url = "https://biq.li/api/v1/qr/{qr}"
payload = {
"title": "<string>",
"payload": {
"long_url": "<string>",
"text": "<string>",
"phone": "<string>",
"message": "<string>",
"ssid": "<string>",
"password": "<string>",
"first_name": "<string>",
"last_name": "<string>",
"organization": "<string>",
"fax": "<string>",
"email": "jsmith@example.com",
"subject": "<string>",
"website": "<string>",
"socials": {
"youtube": "<string>",
"x": "<string>",
"instagram": "<string>",
"tiktok": "<string>",
"linkedin": "<string>"
},
"title": "<string>",
"description": "<string>",
"location": "<string>",
"url": "<string>",
"start": "2023-11-07T05:31:56Z",
"end": "2023-11-07T05:31:56Z",
"app_store_url": "<string>",
"google_play_url": "<string>",
"fallback_url": "<string>"
},
"qr_config": {
"matrixColor": "<string>",
"eyeFrameColor": "<string>",
"eyeColor": "<string>",
"applyGradientToAll": True,
"applyEyeFrameGradientToEye": True,
"showLogo": True
},
"utm": "<string>",
"activates_at": "2023-11-07T05:31:56Z",
"expires_at": "2023-11-07T05:31:56Z",
"geo_rules": [
{
"key": "<string>",
"value": "<string>"
}
],
"device_rules": [
{
"key": "<string>",
"value": "<string>"
}
],
"platform_rules": [
{
"key": "<string>",
"value": "<string>"
}
],
"exp_clicks_rule": {},
"tag_ids": ["<string>"]
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PATCH',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
title: '<string>',
payload: {
long_url: '<string>',
text: '<string>',
phone: '<string>',
message: '<string>',
ssid: '<string>',
password: '<string>',
first_name: '<string>',
last_name: '<string>',
organization: '<string>',
fax: '<string>',
email: 'jsmith@example.com',
subject: '<string>',
website: '<string>',
socials: {
youtube: '<string>',
x: '<string>',
instagram: '<string>',
tiktok: '<string>',
linkedin: '<string>'
},
title: '<string>',
description: '<string>',
location: '<string>',
url: '<string>',
start: '2023-11-07T05:31:56Z',
end: '2023-11-07T05:31:56Z',
app_store_url: '<string>',
google_play_url: '<string>',
fallback_url: '<string>'
},
qr_config: {
matrixColor: '<string>',
eyeFrameColor: '<string>',
eyeColor: '<string>',
applyGradientToAll: true,
applyEyeFrameGradientToEye: true,
showLogo: true
},
utm: '<string>',
activates_at: '2023-11-07T05:31:56Z',
expires_at: '2023-11-07T05:31:56Z',
geo_rules: [{key: '<string>', value: '<string>'}],
device_rules: [{key: '<string>', value: '<string>'}],
platform_rules: [{key: '<string>', value: '<string>'}],
exp_clicks_rule: {},
tag_ids: ['<string>']
})
};
fetch('https://biq.li/api/v1/qr/{qr}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://biq.li/api/v1/qr/{qr}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PATCH",
CURLOPT_POSTFIELDS => json_encode([
'title' => '<string>',
'payload' => [
'long_url' => '<string>',
'text' => '<string>',
'phone' => '<string>',
'message' => '<string>',
'ssid' => '<string>',
'password' => '<string>',
'first_name' => '<string>',
'last_name' => '<string>',
'organization' => '<string>',
'fax' => '<string>',
'email' => 'jsmith@example.com',
'subject' => '<string>',
'website' => '<string>',
'socials' => [
'youtube' => '<string>',
'x' => '<string>',
'instagram' => '<string>',
'tiktok' => '<string>',
'linkedin' => '<string>'
],
'title' => '<string>',
'description' => '<string>',
'location' => '<string>',
'url' => '<string>',
'start' => '2023-11-07T05:31:56Z',
'end' => '2023-11-07T05:31:56Z',
'app_store_url' => '<string>',
'google_play_url' => '<string>',
'fallback_url' => '<string>'
],
'qr_config' => [
'matrixColor' => '<string>',
'eyeFrameColor' => '<string>',
'eyeColor' => '<string>',
'applyGradientToAll' => true,
'applyEyeFrameGradientToEye' => true,
'showLogo' => true
],
'utm' => '<string>',
'activates_at' => '2023-11-07T05:31:56Z',
'expires_at' => '2023-11-07T05:31:56Z',
'geo_rules' => [
[
'key' => '<string>',
'value' => '<string>'
]
],
'device_rules' => [
[
'key' => '<string>',
'value' => '<string>'
]
],
'platform_rules' => [
[
'key' => '<string>',
'value' => '<string>'
]
],
'exp_clicks_rule' => [
],
'tag_ids' => [
'<string>'
]
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://biq.li/api/v1/qr/{qr}"
payload := strings.NewReader("{\n \"title\": \"<string>\",\n \"payload\": {\n \"long_url\": \"<string>\",\n \"text\": \"<string>\",\n \"phone\": \"<string>\",\n \"message\": \"<string>\",\n \"ssid\": \"<string>\",\n \"password\": \"<string>\",\n \"first_name\": \"<string>\",\n \"last_name\": \"<string>\",\n \"organization\": \"<string>\",\n \"fax\": \"<string>\",\n \"email\": \"jsmith@example.com\",\n \"subject\": \"<string>\",\n \"website\": \"<string>\",\n \"socials\": {\n \"youtube\": \"<string>\",\n \"x\": \"<string>\",\n \"instagram\": \"<string>\",\n \"tiktok\": \"<string>\",\n \"linkedin\": \"<string>\"\n },\n \"title\": \"<string>\",\n \"description\": \"<string>\",\n \"location\": \"<string>\",\n \"url\": \"<string>\",\n \"start\": \"2023-11-07T05:31:56Z\",\n \"end\": \"2023-11-07T05:31:56Z\",\n \"app_store_url\": \"<string>\",\n \"google_play_url\": \"<string>\",\n \"fallback_url\": \"<string>\"\n },\n \"qr_config\": {\n \"matrixColor\": \"<string>\",\n \"eyeFrameColor\": \"<string>\",\n \"eyeColor\": \"<string>\",\n \"applyGradientToAll\": true,\n \"applyEyeFrameGradientToEye\": true,\n \"showLogo\": true\n },\n \"utm\": \"<string>\",\n \"activates_at\": \"2023-11-07T05:31:56Z\",\n \"expires_at\": \"2023-11-07T05:31:56Z\",\n \"geo_rules\": [\n {\n \"key\": \"<string>\",\n \"value\": \"<string>\"\n }\n ],\n \"device_rules\": [\n {\n \"key\": \"<string>\",\n \"value\": \"<string>\"\n }\n ],\n \"platform_rules\": [\n {\n \"key\": \"<string>\",\n \"value\": \"<string>\"\n }\n ],\n \"exp_clicks_rule\": {},\n \"tag_ids\": [\n \"<string>\"\n ]\n}")
req, _ := http.NewRequest("PATCH", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.patch("https://biq.li/api/v1/qr/{qr}")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"title\": \"<string>\",\n \"payload\": {\n \"long_url\": \"<string>\",\n \"text\": \"<string>\",\n \"phone\": \"<string>\",\n \"message\": \"<string>\",\n \"ssid\": \"<string>\",\n \"password\": \"<string>\",\n \"first_name\": \"<string>\",\n \"last_name\": \"<string>\",\n \"organization\": \"<string>\",\n \"fax\": \"<string>\",\n \"email\": \"jsmith@example.com\",\n \"subject\": \"<string>\",\n \"website\": \"<string>\",\n \"socials\": {\n \"youtube\": \"<string>\",\n \"x\": \"<string>\",\n \"instagram\": \"<string>\",\n \"tiktok\": \"<string>\",\n \"linkedin\": \"<string>\"\n },\n \"title\": \"<string>\",\n \"description\": \"<string>\",\n \"location\": \"<string>\",\n \"url\": \"<string>\",\n \"start\": \"2023-11-07T05:31:56Z\",\n \"end\": \"2023-11-07T05:31:56Z\",\n \"app_store_url\": \"<string>\",\n \"google_play_url\": \"<string>\",\n \"fallback_url\": \"<string>\"\n },\n \"qr_config\": {\n \"matrixColor\": \"<string>\",\n \"eyeFrameColor\": \"<string>\",\n \"eyeColor\": \"<string>\",\n \"applyGradientToAll\": true,\n \"applyEyeFrameGradientToEye\": true,\n \"showLogo\": true\n },\n \"utm\": \"<string>\",\n \"activates_at\": \"2023-11-07T05:31:56Z\",\n \"expires_at\": \"2023-11-07T05:31:56Z\",\n \"geo_rules\": [\n {\n \"key\": \"<string>\",\n \"value\": \"<string>\"\n }\n ],\n \"device_rules\": [\n {\n \"key\": \"<string>\",\n \"value\": \"<string>\"\n }\n ],\n \"platform_rules\": [\n {\n \"key\": \"<string>\",\n \"value\": \"<string>\"\n }\n ],\n \"exp_clicks_rule\": {},\n \"tag_ids\": [\n \"<string>\"\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://biq.li/api/v1/qr/{qr}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Patch.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"title\": \"<string>\",\n \"payload\": {\n \"long_url\": \"<string>\",\n \"text\": \"<string>\",\n \"phone\": \"<string>\",\n \"message\": \"<string>\",\n \"ssid\": \"<string>\",\n \"password\": \"<string>\",\n \"first_name\": \"<string>\",\n \"last_name\": \"<string>\",\n \"organization\": \"<string>\",\n \"fax\": \"<string>\",\n \"email\": \"jsmith@example.com\",\n \"subject\": \"<string>\",\n \"website\": \"<string>\",\n \"socials\": {\n \"youtube\": \"<string>\",\n \"x\": \"<string>\",\n \"instagram\": \"<string>\",\n \"tiktok\": \"<string>\",\n \"linkedin\": \"<string>\"\n },\n \"title\": \"<string>\",\n \"description\": \"<string>\",\n \"location\": \"<string>\",\n \"url\": \"<string>\",\n \"start\": \"2023-11-07T05:31:56Z\",\n \"end\": \"2023-11-07T05:31:56Z\",\n \"app_store_url\": \"<string>\",\n \"google_play_url\": \"<string>\",\n \"fallback_url\": \"<string>\"\n },\n \"qr_config\": {\n \"matrixColor\": \"<string>\",\n \"eyeFrameColor\": \"<string>\",\n \"eyeColor\": \"<string>\",\n \"applyGradientToAll\": true,\n \"applyEyeFrameGradientToEye\": true,\n \"showLogo\": true\n },\n \"utm\": \"<string>\",\n \"activates_at\": \"2023-11-07T05:31:56Z\",\n \"expires_at\": \"2023-11-07T05:31:56Z\",\n \"geo_rules\": [\n {\n \"key\": \"<string>\",\n \"value\": \"<string>\"\n }\n ],\n \"device_rules\": [\n {\n \"key\": \"<string>\",\n \"value\": \"<string>\"\n }\n ],\n \"platform_rules\": [\n {\n \"key\": \"<string>\",\n \"value\": \"<string>\"\n }\n ],\n \"exp_clicks_rule\": {},\n \"tag_ids\": [\n \"<string>\"\n ]\n}"
response = http.request(request)
puts response.read_body{
"qr_code": {
"id": "<string>",
"type": "static",
"content_type": "text",
"title": "<string>",
"payload": {
"long_url": "<string>",
"text": "<string>",
"phone": "<string>",
"message": "<string>",
"ssid": "<string>",
"encryption": "none",
"password": "<string>",
"first_name": "<string>",
"last_name": "<string>",
"organization": "<string>",
"fax": "<string>",
"email": "jsmith@example.com",
"subject": "<string>",
"website": "<string>",
"socials": {
"youtube": "<string>",
"x": "<string>",
"instagram": "<string>",
"tiktok": "<string>",
"linkedin": "<string>"
},
"title": "<string>",
"description": "<string>",
"location": "<string>",
"url": "<string>",
"start": "2023-11-07T05:31:56Z",
"end": "2023-11-07T05:31:56Z",
"app_store_url": "<string>",
"google_play_url": "<string>",
"fallback_url": "<string>"
},
"scan_value": "<string>",
"qr_config": {
"matrixColor": "<string>",
"eyeFrameColor": "<string>",
"eyeColor": "<string>",
"matrixColorMode": "flat",
"matrixGradient": {
"colorOne": "#214687",
"colorTwo": "#44C8DE",
"angle": "0deg",
"midpoint": 50
},
"eyeFrameColorMode": "flat",
"eyeFrameGradient": {
"colorOne": "#214687",
"colorTwo": "#44C8DE",
"angle": "0deg",
"midpoint": 50
},
"eyeColorMode": "flat",
"eyeGradient": {
"colorOne": "#214687",
"colorTwo": "#44C8DE",
"angle": "0deg",
"midpoint": 50
},
"applyGradientToAll": true,
"applyEyeFrameGradientToEye": true,
"matrixStyle": "square",
"eyeFrameStyle": "square",
"eyeStyle": "square",
"showLogo": true
},
"geo_rules": [
{
"key": "<string>",
"value": "<string>"
}
],
"device_rules": [
{
"key": "<string>",
"value": "<string>"
}
],
"platform_rules": [
{
"key": "<string>",
"value": "<string>"
}
],
"tag_ids": [
"<string>"
],
"clicks_count": 1,
"safety_status": "clear",
"utm": "<string>",
"activates_at": "2023-11-07T05:31:56Z",
"expires_at": "2023-11-07T05:31:56Z",
"exp_clicks_rule": {},
"clicked_at": "2023-11-07T05:31:56Z",
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z"
},
"status": "success"
}{
"error": {
"code": "invalid_token",
"message": "<string>",
"details": {}
},
"request_id": "<string>"
}{
"error": {
"code": "invalid_token",
"message": "<string>",
"details": {}
},
"request_id": "<string>"
}{
"error": {
"code": "invalid_token",
"message": "<string>",
"details": {}
},
"request_id": "<string>"
}{
"error": {
"code": "invalid_token",
"message": "<string>",
"details": {}
},
"request_id": "<string>"
}{
"error": {
"code": "invalid_token",
"message": "<string>",
"details": {}
},
"request_id": "<string>"
}{
"error": {
"code": "invalid_token",
"message": "<string>",
"details": {}
},
"request_id": "<string>"
}QR codes
Update a QR code
Surgically update content, dynamic behavior, tags, or styling.
PATCH
/
v1
/
qr
/
{qr}
Update a QR code
curl --request PATCH \
--url https://biq.li/api/v1/qr/{qr} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"title": "<string>",
"payload": {
"long_url": "<string>",
"text": "<string>",
"phone": "<string>",
"message": "<string>",
"ssid": "<string>",
"password": "<string>",
"first_name": "<string>",
"last_name": "<string>",
"organization": "<string>",
"fax": "<string>",
"email": "jsmith@example.com",
"subject": "<string>",
"website": "<string>",
"socials": {
"youtube": "<string>",
"x": "<string>",
"instagram": "<string>",
"tiktok": "<string>",
"linkedin": "<string>"
},
"title": "<string>",
"description": "<string>",
"location": "<string>",
"url": "<string>",
"start": "2023-11-07T05:31:56Z",
"end": "2023-11-07T05:31:56Z",
"app_store_url": "<string>",
"google_play_url": "<string>",
"fallback_url": "<string>"
},
"qr_config": {
"matrixColor": "<string>",
"eyeFrameColor": "<string>",
"eyeColor": "<string>",
"applyGradientToAll": true,
"applyEyeFrameGradientToEye": true,
"showLogo": true
},
"utm": "<string>",
"activates_at": "2023-11-07T05:31:56Z",
"expires_at": "2023-11-07T05:31:56Z",
"geo_rules": [
{
"key": "<string>",
"value": "<string>"
}
],
"device_rules": [
{
"key": "<string>",
"value": "<string>"
}
],
"platform_rules": [
{
"key": "<string>",
"value": "<string>"
}
],
"exp_clicks_rule": {},
"tag_ids": [
"<string>"
]
}
'import requests
url = "https://biq.li/api/v1/qr/{qr}"
payload = {
"title": "<string>",
"payload": {
"long_url": "<string>",
"text": "<string>",
"phone": "<string>",
"message": "<string>",
"ssid": "<string>",
"password": "<string>",
"first_name": "<string>",
"last_name": "<string>",
"organization": "<string>",
"fax": "<string>",
"email": "jsmith@example.com",
"subject": "<string>",
"website": "<string>",
"socials": {
"youtube": "<string>",
"x": "<string>",
"instagram": "<string>",
"tiktok": "<string>",
"linkedin": "<string>"
},
"title": "<string>",
"description": "<string>",
"location": "<string>",
"url": "<string>",
"start": "2023-11-07T05:31:56Z",
"end": "2023-11-07T05:31:56Z",
"app_store_url": "<string>",
"google_play_url": "<string>",
"fallback_url": "<string>"
},
"qr_config": {
"matrixColor": "<string>",
"eyeFrameColor": "<string>",
"eyeColor": "<string>",
"applyGradientToAll": True,
"applyEyeFrameGradientToEye": True,
"showLogo": True
},
"utm": "<string>",
"activates_at": "2023-11-07T05:31:56Z",
"expires_at": "2023-11-07T05:31:56Z",
"geo_rules": [
{
"key": "<string>",
"value": "<string>"
}
],
"device_rules": [
{
"key": "<string>",
"value": "<string>"
}
],
"platform_rules": [
{
"key": "<string>",
"value": "<string>"
}
],
"exp_clicks_rule": {},
"tag_ids": ["<string>"]
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PATCH',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
title: '<string>',
payload: {
long_url: '<string>',
text: '<string>',
phone: '<string>',
message: '<string>',
ssid: '<string>',
password: '<string>',
first_name: '<string>',
last_name: '<string>',
organization: '<string>',
fax: '<string>',
email: 'jsmith@example.com',
subject: '<string>',
website: '<string>',
socials: {
youtube: '<string>',
x: '<string>',
instagram: '<string>',
tiktok: '<string>',
linkedin: '<string>'
},
title: '<string>',
description: '<string>',
location: '<string>',
url: '<string>',
start: '2023-11-07T05:31:56Z',
end: '2023-11-07T05:31:56Z',
app_store_url: '<string>',
google_play_url: '<string>',
fallback_url: '<string>'
},
qr_config: {
matrixColor: '<string>',
eyeFrameColor: '<string>',
eyeColor: '<string>',
applyGradientToAll: true,
applyEyeFrameGradientToEye: true,
showLogo: true
},
utm: '<string>',
activates_at: '2023-11-07T05:31:56Z',
expires_at: '2023-11-07T05:31:56Z',
geo_rules: [{key: '<string>', value: '<string>'}],
device_rules: [{key: '<string>', value: '<string>'}],
platform_rules: [{key: '<string>', value: '<string>'}],
exp_clicks_rule: {},
tag_ids: ['<string>']
})
};
fetch('https://biq.li/api/v1/qr/{qr}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://biq.li/api/v1/qr/{qr}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PATCH",
CURLOPT_POSTFIELDS => json_encode([
'title' => '<string>',
'payload' => [
'long_url' => '<string>',
'text' => '<string>',
'phone' => '<string>',
'message' => '<string>',
'ssid' => '<string>',
'password' => '<string>',
'first_name' => '<string>',
'last_name' => '<string>',
'organization' => '<string>',
'fax' => '<string>',
'email' => 'jsmith@example.com',
'subject' => '<string>',
'website' => '<string>',
'socials' => [
'youtube' => '<string>',
'x' => '<string>',
'instagram' => '<string>',
'tiktok' => '<string>',
'linkedin' => '<string>'
],
'title' => '<string>',
'description' => '<string>',
'location' => '<string>',
'url' => '<string>',
'start' => '2023-11-07T05:31:56Z',
'end' => '2023-11-07T05:31:56Z',
'app_store_url' => '<string>',
'google_play_url' => '<string>',
'fallback_url' => '<string>'
],
'qr_config' => [
'matrixColor' => '<string>',
'eyeFrameColor' => '<string>',
'eyeColor' => '<string>',
'applyGradientToAll' => true,
'applyEyeFrameGradientToEye' => true,
'showLogo' => true
],
'utm' => '<string>',
'activates_at' => '2023-11-07T05:31:56Z',
'expires_at' => '2023-11-07T05:31:56Z',
'geo_rules' => [
[
'key' => '<string>',
'value' => '<string>'
]
],
'device_rules' => [
[
'key' => '<string>',
'value' => '<string>'
]
],
'platform_rules' => [
[
'key' => '<string>',
'value' => '<string>'
]
],
'exp_clicks_rule' => [
],
'tag_ids' => [
'<string>'
]
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://biq.li/api/v1/qr/{qr}"
payload := strings.NewReader("{\n \"title\": \"<string>\",\n \"payload\": {\n \"long_url\": \"<string>\",\n \"text\": \"<string>\",\n \"phone\": \"<string>\",\n \"message\": \"<string>\",\n \"ssid\": \"<string>\",\n \"password\": \"<string>\",\n \"first_name\": \"<string>\",\n \"last_name\": \"<string>\",\n \"organization\": \"<string>\",\n \"fax\": \"<string>\",\n \"email\": \"jsmith@example.com\",\n \"subject\": \"<string>\",\n \"website\": \"<string>\",\n \"socials\": {\n \"youtube\": \"<string>\",\n \"x\": \"<string>\",\n \"instagram\": \"<string>\",\n \"tiktok\": \"<string>\",\n \"linkedin\": \"<string>\"\n },\n \"title\": \"<string>\",\n \"description\": \"<string>\",\n \"location\": \"<string>\",\n \"url\": \"<string>\",\n \"start\": \"2023-11-07T05:31:56Z\",\n \"end\": \"2023-11-07T05:31:56Z\",\n \"app_store_url\": \"<string>\",\n \"google_play_url\": \"<string>\",\n \"fallback_url\": \"<string>\"\n },\n \"qr_config\": {\n \"matrixColor\": \"<string>\",\n \"eyeFrameColor\": \"<string>\",\n \"eyeColor\": \"<string>\",\n \"applyGradientToAll\": true,\n \"applyEyeFrameGradientToEye\": true,\n \"showLogo\": true\n },\n \"utm\": \"<string>\",\n \"activates_at\": \"2023-11-07T05:31:56Z\",\n \"expires_at\": \"2023-11-07T05:31:56Z\",\n \"geo_rules\": [\n {\n \"key\": \"<string>\",\n \"value\": \"<string>\"\n }\n ],\n \"device_rules\": [\n {\n \"key\": \"<string>\",\n \"value\": \"<string>\"\n }\n ],\n \"platform_rules\": [\n {\n \"key\": \"<string>\",\n \"value\": \"<string>\"\n }\n ],\n \"exp_clicks_rule\": {},\n \"tag_ids\": [\n \"<string>\"\n ]\n}")
req, _ := http.NewRequest("PATCH", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.patch("https://biq.li/api/v1/qr/{qr}")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"title\": \"<string>\",\n \"payload\": {\n \"long_url\": \"<string>\",\n \"text\": \"<string>\",\n \"phone\": \"<string>\",\n \"message\": \"<string>\",\n \"ssid\": \"<string>\",\n \"password\": \"<string>\",\n \"first_name\": \"<string>\",\n \"last_name\": \"<string>\",\n \"organization\": \"<string>\",\n \"fax\": \"<string>\",\n \"email\": \"jsmith@example.com\",\n \"subject\": \"<string>\",\n \"website\": \"<string>\",\n \"socials\": {\n \"youtube\": \"<string>\",\n \"x\": \"<string>\",\n \"instagram\": \"<string>\",\n \"tiktok\": \"<string>\",\n \"linkedin\": \"<string>\"\n },\n \"title\": \"<string>\",\n \"description\": \"<string>\",\n \"location\": \"<string>\",\n \"url\": \"<string>\",\n \"start\": \"2023-11-07T05:31:56Z\",\n \"end\": \"2023-11-07T05:31:56Z\",\n \"app_store_url\": \"<string>\",\n \"google_play_url\": \"<string>\",\n \"fallback_url\": \"<string>\"\n },\n \"qr_config\": {\n \"matrixColor\": \"<string>\",\n \"eyeFrameColor\": \"<string>\",\n \"eyeColor\": \"<string>\",\n \"applyGradientToAll\": true,\n \"applyEyeFrameGradientToEye\": true,\n \"showLogo\": true\n },\n \"utm\": \"<string>\",\n \"activates_at\": \"2023-11-07T05:31:56Z\",\n \"expires_at\": \"2023-11-07T05:31:56Z\",\n \"geo_rules\": [\n {\n \"key\": \"<string>\",\n \"value\": \"<string>\"\n }\n ],\n \"device_rules\": [\n {\n \"key\": \"<string>\",\n \"value\": \"<string>\"\n }\n ],\n \"platform_rules\": [\n {\n \"key\": \"<string>\",\n \"value\": \"<string>\"\n }\n ],\n \"exp_clicks_rule\": {},\n \"tag_ids\": [\n \"<string>\"\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://biq.li/api/v1/qr/{qr}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Patch.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"title\": \"<string>\",\n \"payload\": {\n \"long_url\": \"<string>\",\n \"text\": \"<string>\",\n \"phone\": \"<string>\",\n \"message\": \"<string>\",\n \"ssid\": \"<string>\",\n \"password\": \"<string>\",\n \"first_name\": \"<string>\",\n \"last_name\": \"<string>\",\n \"organization\": \"<string>\",\n \"fax\": \"<string>\",\n \"email\": \"jsmith@example.com\",\n \"subject\": \"<string>\",\n \"website\": \"<string>\",\n \"socials\": {\n \"youtube\": \"<string>\",\n \"x\": \"<string>\",\n \"instagram\": \"<string>\",\n \"tiktok\": \"<string>\",\n \"linkedin\": \"<string>\"\n },\n \"title\": \"<string>\",\n \"description\": \"<string>\",\n \"location\": \"<string>\",\n \"url\": \"<string>\",\n \"start\": \"2023-11-07T05:31:56Z\",\n \"end\": \"2023-11-07T05:31:56Z\",\n \"app_store_url\": \"<string>\",\n \"google_play_url\": \"<string>\",\n \"fallback_url\": \"<string>\"\n },\n \"qr_config\": {\n \"matrixColor\": \"<string>\",\n \"eyeFrameColor\": \"<string>\",\n \"eyeColor\": \"<string>\",\n \"applyGradientToAll\": true,\n \"applyEyeFrameGradientToEye\": true,\n \"showLogo\": true\n },\n \"utm\": \"<string>\",\n \"activates_at\": \"2023-11-07T05:31:56Z\",\n \"expires_at\": \"2023-11-07T05:31:56Z\",\n \"geo_rules\": [\n {\n \"key\": \"<string>\",\n \"value\": \"<string>\"\n }\n ],\n \"device_rules\": [\n {\n \"key\": \"<string>\",\n \"value\": \"<string>\"\n }\n ],\n \"platform_rules\": [\n {\n \"key\": \"<string>\",\n \"value\": \"<string>\"\n }\n ],\n \"exp_clicks_rule\": {},\n \"tag_ids\": [\n \"<string>\"\n ]\n}"
response = http.request(request)
puts response.read_body{
"qr_code": {
"id": "<string>",
"type": "static",
"content_type": "text",
"title": "<string>",
"payload": {
"long_url": "<string>",
"text": "<string>",
"phone": "<string>",
"message": "<string>",
"ssid": "<string>",
"encryption": "none",
"password": "<string>",
"first_name": "<string>",
"last_name": "<string>",
"organization": "<string>",
"fax": "<string>",
"email": "jsmith@example.com",
"subject": "<string>",
"website": "<string>",
"socials": {
"youtube": "<string>",
"x": "<string>",
"instagram": "<string>",
"tiktok": "<string>",
"linkedin": "<string>"
},
"title": "<string>",
"description": "<string>",
"location": "<string>",
"url": "<string>",
"start": "2023-11-07T05:31:56Z",
"end": "2023-11-07T05:31:56Z",
"app_store_url": "<string>",
"google_play_url": "<string>",
"fallback_url": "<string>"
},
"scan_value": "<string>",
"qr_config": {
"matrixColor": "<string>",
"eyeFrameColor": "<string>",
"eyeColor": "<string>",
"matrixColorMode": "flat",
"matrixGradient": {
"colorOne": "#214687",
"colorTwo": "#44C8DE",
"angle": "0deg",
"midpoint": 50
},
"eyeFrameColorMode": "flat",
"eyeFrameGradient": {
"colorOne": "#214687",
"colorTwo": "#44C8DE",
"angle": "0deg",
"midpoint": 50
},
"eyeColorMode": "flat",
"eyeGradient": {
"colorOne": "#214687",
"colorTwo": "#44C8DE",
"angle": "0deg",
"midpoint": 50
},
"applyGradientToAll": true,
"applyEyeFrameGradientToEye": true,
"matrixStyle": "square",
"eyeFrameStyle": "square",
"eyeStyle": "square",
"showLogo": true
},
"geo_rules": [
{
"key": "<string>",
"value": "<string>"
}
],
"device_rules": [
{
"key": "<string>",
"value": "<string>"
}
],
"platform_rules": [
{
"key": "<string>",
"value": "<string>"
}
],
"tag_ids": [
"<string>"
],
"clicks_count": 1,
"safety_status": "clear",
"utm": "<string>",
"activates_at": "2023-11-07T05:31:56Z",
"expires_at": "2023-11-07T05:31:56Z",
"exp_clicks_rule": {},
"clicked_at": "2023-11-07T05:31:56Z",
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z"
},
"status": "success"
}{
"error": {
"code": "invalid_token",
"message": "<string>",
"details": {}
},
"request_id": "<string>"
}{
"error": {
"code": "invalid_token",
"message": "<string>",
"details": {}
},
"request_id": "<string>"
}{
"error": {
"code": "invalid_token",
"message": "<string>",
"details": {}
},
"request_id": "<string>"
}{
"error": {
"code": "invalid_token",
"message": "<string>",
"details": {}
},
"request_id": "<string>"
}{
"error": {
"code": "invalid_token",
"message": "<string>",
"details": {}
},
"request_id": "<string>"
}{
"error": {
"code": "invalid_token",
"message": "<string>",
"details": {}
},
"request_id": "<string>"
}PATCH /v1/qr/{qr_id} requires QR codes: Write (qr_codes.update). Send at least one supported field. Omitted top-level fields remain unchanged.
curl --request PATCH \
--url https://biq.li/api/v1/qr/biq_qr_01M19Q8W6R3M0AS7B4PK2H5XCY \
--header 'Authorization: Bearer biqli_your_workspace_api_key' \
--header 'Accept: application/json' \
--header 'Content-Type: application/json' \
--data '{
"title": "Autumn product QR",
"payload": {
"long_url": "https://example.com/autumn"
}
}'
Merge behavior
qr_configis recursively merged with the current public styling configuration. You can change one color or one gradient property without resending the complete design.payloadis replaced and normalized as a complete content payload. When changing it, send all values you want to preserve.tag_idsreplaces the complete tag set. Send[]to remove all tags. A non-empty array also requirestags.view.- Rule arrays replace their corresponding rule set. Send
[]to clear a rule group andexp_clicks_rule: nullto clear scan expiration. qr_config: nullresets the saved public styling configuration to renderer defaults.
Change styling surgically
{
"qr_config": {
"matrixColorMode": "gradient",
"matrixGradient": {
"colorOne": "#214687",
"colorTwo": "#44C8DE",
"angle": "315deg",
"midpoint": 55
},
"applyGradientToAll": true
}
}
Change type or content type
If you changecontent_type, also send a complete matching payload. Static and dynamic types accept different content types. Changing a QR to static clears scheduling, UTM data, and dynamic rules because those features do not apply to static content.
Custom logos are not supported. qr_config.logoUrl and qr_config.useCustomLogo return 422 validation_error.
Success returns 200 OK with the complete updated QR code. An unavailable or cross-workspace biq_qr_... ID returns 404 resource_not_found.
Shared API behavior
Authentication is workspace-scoped; see Authentication. Errors use the standard envelope and request IDs described in Errors, and requests are subject to Rate limits.Authorizations
A workspace API key beginning with biqli_.
Path Parameters
Pattern:
^biq_qr_[0-9A-HJKMNP-TV-Z]{26}$Body
application/json
Available options:
static, dynamic Available options:
text, link, email, phone, sms, wifi, vcard, event, application, whatsapp Maximum string length:
255Fields must match content_type. See Create a QR code for required combinations.
Show child attributes
Show child attributes
Public QR design. applyGradientToAll gives the matrix gradient precedence over both eye sections. Otherwise applyEyeFrameGradientToEye gives the eye-frame gradient precedence over the eye center. Custom logos are not supported.
Show child attributes
Show child attributes
Maximum string length:
2000Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Maximum array length:
100
