---
title: "QR Code Designs API Reference | Linkbreakers"
description: "The look of a link's QR code: colors, dot and corner shapes, and the logo in its center. Apply a template to a link's code."
canonical: "https://linkbreakers.com/help/api/qr-code-designs"
---

# QR Code Designs

The look of a link's QR code: colors, dot and corner shapes, and the logo in its center. Apply a template to a link's code.

6 entries on this page

## The qr code design object

How a QR code looks: colors, shapes, export options and center image.

A design is attached to one record at a time: a link, or a QR code template that makes it reusable.

`backgroundOptions` object

The styling options for the background

1 child attribute

`themeColor` object

Color configuration supporting solid colors and gradients

4 child attributes

`colors` array of string 

Required

Color values in render order (hex, rgb/rgba, hsl/hsla).

`direction` string

Optional direction for linear gradients (e.g. "135deg", "to right").

`stops` array of string

Optional stop offsets aligned with `colors` (e.g. "0%", "50%", "100%").

`type` enum 

Required

Color type

Allowed values

* `THEME_COLOR_TYPE_SOLID`
* `THEME_COLOR_TYPE_LINEAR`
* `THEME_COLOR_TYPE_RADIAL`

`centralImageMargin` integer (int32)

The margin around the central image in pixels

`centralImageMediaId` string 

Read-only

The media library item the central image (the QR code logo) was picked from (UUID). Empty when the logo came from a template or a public upload, or there is none. The design keeps its own copy of the image, so the logo survives the media being deleted; this id may then name media that no longer exists.

`centralImageSignedUrl` string 

Read-only

The signed URL for the central image This URL eventually expires

`centralImageSize` number (double)

The size of the central image relative to the QR code (0.0-1.0 proportion)

`cornersDotOptions` object

The styling options for the dot corners

2 child attributes

`themeColor` object

Color configuration supporting solid colors and gradients

4 child attributes

`colors` array of string 

Required

Color values in render order (hex, rgb/rgba, hsl/hsla).

`direction` string

Optional direction for linear gradients (e.g. "135deg", "to right").

`stops` array of string

Optional stop offsets aligned with `colors` (e.g. "0%", "50%", "100%").

`type` enum 

Required

Color type

Allowed values

* `THEME_COLOR_TYPE_SOLID`
* `THEME_COLOR_TYPE_LINEAR`
* `THEME_COLOR_TYPE_RADIAL`

`type` enum

Rendering style for the dot corners

Allowed values

* `CORNERS_DOT_TYPE_DOT`
* `CORNERS_DOT_TYPE_SQUARE`
* `CORNERS_DOT_TYPE_HEXAGON`
* `CORNERS_DOT_TYPE_OCTAGON`
* `CORNERS_DOT_TYPE_TEARDROP`
* `CORNERS_DOT_TYPE_STAR`

`cornersSquareOptions` object

The styling options for the square corners

2 child attributes

`themeColor` object

Color configuration supporting solid colors and gradients

4 child attributes

`colors` array of string 

Required

Color values in render order (hex, rgb/rgba, hsl/hsla).

`direction` string

Optional direction for linear gradients (e.g. "135deg", "to right").

`stops` array of string

Optional stop offsets aligned with `colors` (e.g. "0%", "50%", "100%").

`type` enum 

Required

Color type

Allowed values

* `THEME_COLOR_TYPE_SOLID`
* `THEME_COLOR_TYPE_LINEAR`
* `THEME_COLOR_TYPE_RADIAL`

`type` enum

Rendering style for the square corners

Allowed values

* `CORNERS_SQUARE_TYPE_DOT`
* `CORNERS_SQUARE_TYPE_SQUARE`
* `CORNERS_SQUARE_TYPE_EXTRA_ROUNDED`
* `CORNERS_SQUARE_TYPE_HEXAGON`
* `CORNERS_SQUARE_TYPE_OCTAGON`
* `CORNERS_SQUARE_TYPE_LEAF`

`createdAt` string (date-time) 

Read-only

When the QR code design was created

`dotsOptions` object

The styling options for the dots

2 child attributes

`themeColor` object

Color configuration supporting solid colors and gradients

4 child attributes

`colors` array of string 

Required

Color values in render order (hex, rgb/rgba, hsl/hsla).

`direction` string

Optional direction for linear gradients (e.g. "135deg", "to right").

`stops` array of string

Optional stop offsets aligned with `colors` (e.g. "0%", "50%", "100%").

`type` enum 

Required

Color type

Allowed values

* `THEME_COLOR_TYPE_SOLID`
* `THEME_COLOR_TYPE_LINEAR`
* `THEME_COLOR_TYPE_RADIAL`

`type` enum

Rendering style for data dots

Allowed values

* `DOTS_TYPE_SQUARE`
* `DOTS_TYPE_DOTS`
* `DOTS_TYPE_BUBBLY_DOTS`
* `DOTS_TYPE_CIRCUIT_CHIP`
* `DOTS_TYPE_ROUNDED`
* `DOTS_TYPE_EXTRA_ROUNDED`
* `DOTS_TYPE_CLASSY`
* `DOTS_TYPE_CLASSY_ROUNDED`
* `DOTS_TYPE_HEXAGON`
* `DOTS_TYPE_OCTAGON`

`errorCorrectionLevel` string

Error correction level forwarded to the QR renderer ("L","M","Q","H")

`hasCentralImage` boolean 

Read-only

Whether the design has a central image (a logo) right now, however it got there: applied from a template, uploaded, or picked from the media library. An update that leaves the central image fields out keeps it.

`height` integer (int32)

Export height in pixels

`hideBackgroundDots` boolean

Whether to remove dots behind the central image to improve contrast

`id` string

The unique identifier of the QR code design (UUID)

`outputFileFormat` enum

The output file format for the QR code.

Allowed values

* `OUTPUT_FILE_FORMAT_SVG` Scalable Vector Graphics format for infinite resolution
* `OUTPUT_FILE_FORMAT_PNG` Portable Network Graphics format with transparency support
* `OUTPUT_FILE_FORMAT_JPEG` Joint Photographic Experts Group format for compressed images
* `OUTPUT_FILE_FORMAT_WEBP` WebP format for modern web-optimized compression
* `OUTPUT_FILE_FORMAT_UNSPECIFIED` Output format not specified (defaults to PNG server-side)

`shape` enum

The shape of the QR code.

Allowed values

* `SHAPE_SQUARE` Traditional square modules for QR code data points
* `SHAPE_CIRCLE` Circular modules for a rounded visual appearance
* `SHAPE_UNSPECIFIED` Shape not specified (defaults to square modules)

`updatedAt` string (date-time) 

Read-only

When the QR code design was last updated

`width` integer (int32)

Export width in pixels

Example qr code design

```json
{
  "backgroundOptions": {
    "themeColor": {
      "colors": [
        "#1F3A5F",
        "#F4EDE4"
      ],
      "direction": "135deg",
      "stops": [
        "0%",
        "100%"
      ],
      "type": "THEME_COLOR_TYPE_LINEAR"
    }
  },
  "centralImageMargin": 8,
  "centralImageMediaId": "5f1c2d3e-4b5a-6c7d-8e9f-0a1b2c3d4e5f",
  "centralImageSignedUrl": "https://cdn.linkbreakers.com/media/5f1c2d3e/menu-cover.png",
  "centralImageSize": 0.3,
  "cornersDotOptions": {
    "themeColor": {
      "colors": [
        "#1F3A5F",
        "#F4EDE4"
      ],
      "direction": "135deg",
      "stops": [
        "0%",
        "100%"
      ],
      "type": "THEME_COLOR_TYPE_LINEAR"
    },
    "type": "CORNERS_DOT_TYPE_DOT"
  },
  "cornersSquareOptions": {
    "themeColor": {
      "colors": [
        "#1F3A5F",
        "#F4EDE4"
      ],
      "direction": "135deg",
      "stops": [
        "0%",
        "100%"
      ],
      "type": "THEME_COLOR_TYPE_LINEAR"
    },
    "type": "CORNERS_SQUARE_TYPE_EXTRA_ROUNDED"
  },
  "createdAt": "2026-03-14T09:30:00Z",
  "dotsOptions": {
    "themeColor": {
      "colors": [
        "#1F3A5F",
        "#F4EDE4"
      ],
      "direction": "135deg",
      "stops": [
        "0%",
        "100%"
      ],
      "type": "THEME_COLOR_TYPE_LINEAR"
    },
    "type": "DOTS_TYPE_ROUNDED"
  },
  "errorCorrectionLevel": "H",
  "hasCentralImage": true,
  "height": 1024,
  "hideBackgroundDots": true,
  "id": "a8c5e111-8894-4f8a-b5db-9efe0d12a210",
  "outputFileFormat": "OUTPUT_FILE_FORMAT_PNG",
  "shape": "SHAPE_SQUARE",
  "updatedAt": "2026-03-18T16:05:00Z",
  "width": 1024
}
```

### Parameters

`id` string 

path

Required

The ID of the QR code design to get (UUID)

### Response

200

`qrcodeDesign` object

The QR code design

Fields: [The qr code design object](#qr-code-designs-object).

Errors answer 4xx or 5xx with the [error object](https://linkbreakers.com/help/api#errors), and `429` past the [rate limit](https://linkbreakers.com/help/api#rate-limits).

Request

```bash
curl -X GET "https://api.linkbreakers.com/v1/qrcode-designs/{id}" \
  -H "Authorization: Bearer $LINKBREAKERS_TOKEN"
```

Response 200

```json
{
  "qrcodeDesign": {
    "backgroundOptions": {
      "themeColor": {
        "colors": [
          "#1F3A5F",
          "#F4EDE4"
        ],
        "direction": "135deg",
        "stops": [
          "0%",
          "100%"
        ],
        "type": "THEME_COLOR_TYPE_LINEAR"
      }
    },
    "centralImageMargin": 8,
    "centralImageMediaId": "5f1c2d3e-4b5a-6c7d-8e9f-0a1b2c3d4e5f",
    "centralImageSignedUrl": "https://cdn.linkbreakers.com/media/5f1c2d3e/menu-cover.png",
    "centralImageSize": 0.3,
    "cornersDotOptions": {
      "themeColor": {
        "colors": [
          "#1F3A5F",
          "#F4EDE4"
        ],
        "direction": "135deg",
        "stops": [
          "0%",
          "100%"
        ],
        "type": "THEME_COLOR_TYPE_LINEAR"
      },
      "type": "CORNERS_DOT_TYPE_DOT"
    },
    "cornersSquareOptions": {
      "themeColor": {
        "colors": [
          "#1F3A5F",
          "#F4EDE4"
        ],
        "direction": "135deg",
        "stops": [
          "0%",
          "100%"
        ],
        "type": "THEME_COLOR_TYPE_LINEAR"
      },
      "type": "CORNERS_SQUARE_TYPE_EXTRA_ROUNDED"
    },
    "createdAt": "2026-03-14T09:30:00Z",
    "dotsOptions": {
      "themeColor": {
        "colors": [
          "#1F3A5F",
          "#F4EDE4"
        ],
        "direction": "135deg",
        "stops": [
          "0%",
          "100%"
        ],
        "type": "THEME_COLOR_TYPE_LINEAR"
      },
      "type": "DOTS_TYPE_ROUNDED"
    },
    "errorCorrectionLevel": "H",
    "hasCentralImage": true,
    "height": 1024,
    "hideBackgroundDots": true,
    "id": "a8c5e111-8894-4f8a-b5db-9efe0d12a210",
    "outputFileFormat": "OUTPUT_FILE_FORMAT_PNG",
    "shape": "SHAPE_SQUARE",
    "updatedAt": "2026-03-18T16:05:00Z",
    "width": 1024
  }
}
```

### Parameters

`Idempotency-Key` string 

header

A unique value per request, such as a UUID, that makes retrying it safe: a retry with the same key and body returns the first response instead of acting twice.

### Request body

`backgroundOptions` object

The styling options for the background

1 child attribute

`themeColor` object

Color configuration supporting solid colors and gradients

4 child attributes

`colors` array of string 

Required

Color values in render order (hex, rgb/rgba, hsl/hsla).

`direction` string

Optional direction for linear gradients (e.g. "135deg", "to right").

`stops` array of string

Optional stop offsets aligned with `colors` (e.g. "0%", "50%", "100%").

`type` enum 

Required

Color type

Allowed values

* `THEME_COLOR_TYPE_SOLID`
* `THEME_COLOR_TYPE_LINEAR`
* `THEME_COLOR_TYPE_RADIAL`

`centralImageMargin` integer (int32)

The margin around the central image in pixels

`centralImageMediaId` string

The central image (the logo): the media id of a public upload (UUID), made without an API token with POST /v1/media/public-uploads, a PUT of the image, and its complete call. The image itself is never sent here. Only a completed public upload of the last hour is accepted, an image of at most 3 MB; anything else is refused with QRCODE\_DESIGN\_INVALID\_LOGO\_MEDIA. The design keeps its own copy of the image. To use an image of your media library, create the design, then set centralImageMediaId with Update.

`centralImageSize` number (double)

The size of the central image relative to the QR code

`cornersDotOptions` object

The styling options for the dot corners

2 child attributes

`themeColor` object

Color configuration supporting solid colors and gradients

4 child attributes

`colors` array of string 

Required

Color values in render order (hex, rgb/rgba, hsl/hsla).

`direction` string

Optional direction for linear gradients (e.g. "135deg", "to right").

`stops` array of string

Optional stop offsets aligned with `colors` (e.g. "0%", "50%", "100%").

`type` enum 

Required

Color type

Allowed values

* `THEME_COLOR_TYPE_SOLID`
* `THEME_COLOR_TYPE_LINEAR`
* `THEME_COLOR_TYPE_RADIAL`

`type` enum

Rendering style for the dot corners

Allowed values

* `CORNERS_DOT_TYPE_DOT`
* `CORNERS_DOT_TYPE_SQUARE`
* `CORNERS_DOT_TYPE_HEXAGON`
* `CORNERS_DOT_TYPE_OCTAGON`
* `CORNERS_DOT_TYPE_TEARDROP`
* `CORNERS_DOT_TYPE_STAR`

`cornersSquareOptions` object

The styling options for the square corners

2 child attributes

`themeColor` object

Color configuration supporting solid colors and gradients

4 child attributes

`colors` array of string 

Required

Color values in render order (hex, rgb/rgba, hsl/hsla).

`direction` string

Optional direction for linear gradients (e.g. "135deg", "to right").

`stops` array of string

Optional stop offsets aligned with `colors` (e.g. "0%", "50%", "100%").

`type` enum 

Required

Color type

Allowed values

* `THEME_COLOR_TYPE_SOLID`
* `THEME_COLOR_TYPE_LINEAR`
* `THEME_COLOR_TYPE_RADIAL`

`type` enum

Rendering style for the square corners

Allowed values

* `CORNERS_SQUARE_TYPE_DOT`
* `CORNERS_SQUARE_TYPE_SQUARE`
* `CORNERS_SQUARE_TYPE_EXTRA_ROUNDED`
* `CORNERS_SQUARE_TYPE_HEXAGON`
* `CORNERS_SQUARE_TYPE_OCTAGON`
* `CORNERS_SQUARE_TYPE_LEAF`

`dotsOptions` object

The styling options for the dots

2 child attributes

`themeColor` object

Color configuration supporting solid colors and gradients

4 child attributes

`colors` array of string 

Required

Color values in render order (hex, rgb/rgba, hsl/hsla).

`direction` string

Optional direction for linear gradients (e.g. "135deg", "to right").

`stops` array of string

Optional stop offsets aligned with `colors` (e.g. "0%", "50%", "100%").

`type` enum 

Required

Color type

Allowed values

* `THEME_COLOR_TYPE_SOLID`
* `THEME_COLOR_TYPE_LINEAR`
* `THEME_COLOR_TYPE_RADIAL`

`type` enum

Rendering style for data dots

Allowed values

* `DOTS_TYPE_SQUARE`
* `DOTS_TYPE_DOTS`
* `DOTS_TYPE_BUBBLY_DOTS`
* `DOTS_TYPE_CIRCUIT_CHIP`
* `DOTS_TYPE_ROUNDED`
* `DOTS_TYPE_EXTRA_ROUNDED`
* `DOTS_TYPE_CLASSY`
* `DOTS_TYPE_CLASSY_ROUNDED`
* `DOTS_TYPE_HEXAGON`
* `DOTS_TYPE_OCTAGON`

`errorCorrectionLevel` string

The error correction level of the QR code

`height` integer (int32)

The height of the QR code

`hideBackgroundDots` boolean

Whether to hide the background dots

`outputFileFormat` enum

The output file format for the QR code.

Allowed values

* `OUTPUT_FILE_FORMAT_SVG` Scalable Vector Graphics format for infinite resolution
* `OUTPUT_FILE_FORMAT_PNG` Portable Network Graphics format with transparency support
* `OUTPUT_FILE_FORMAT_JPEG` Joint Photographic Experts Group format for compressed images
* `OUTPUT_FILE_FORMAT_WEBP` WebP format for modern web-optimized compression
* `OUTPUT_FILE_FORMAT_UNSPECIFIED` Output format not specified (defaults to PNG server-side)

`shape` enum

The shape of the QR code.

Allowed values

* `SHAPE_SQUARE` Traditional square modules for QR code data points
* `SHAPE_CIRCLE` Circular modules for a rounded visual appearance
* `SHAPE_UNSPECIFIED` Shape not specified (defaults to square modules)

`width` integer (int32)

The width of the QR code

### Response

200

`qrcodeDesign` object

The created QR code design

Fields: [The qr code design object](#qr-code-designs-object).

Errors answer 4xx or 5xx with the [error object](https://linkbreakers.com/help/api#errors), and `429` past the [rate limit](https://linkbreakers.com/help/api#rate-limits).

Request

```bash
curl -X POST "https://api.linkbreakers.com/v1/qrcode-designs" \
  -H "Content-Type: application/json" \
  --data '{
  "backgroundOptions": {
    "themeColor": {
      "colors": [
        "#1F3A5F",
        "#F4EDE4"
      ],
      "direction": "135deg",
      "stops": [
        "0%",
        "100%"
      ],
      "type": "THEME_COLOR_TYPE_LINEAR"
    }
  },
  "centralImageMargin": 8,
  "centralImageMediaId": "0e5b7c2d-8a41-4f6e-9b3c-2d7f1a6e4c58",
  "centralImageSize": 0.3,
  "cornersDotOptions": {
    "themeColor": {
      "colors": [
        "#1F3A5F",
        "#F4EDE4"
      ],
      "direction": "135deg",
      "stops": [
        "0%",
        "100%"
      ],
      "type": "THEME_COLOR_TYPE_LINEAR"
    },
    "type": "CORNERS_DOT_TYPE_DOT"
  },
  "cornersSquareOptions": {
    "themeColor": {
      "colors": [
        "#1F3A5F",
        "#F4EDE4"
      ],
      "direction": "135deg",
      "stops": [
        "0%",
        "100%"
      ],
      "type": "THEME_COLOR_TYPE_LINEAR"
    },
    "type": "CORNERS_SQUARE_TYPE_EXTRA_ROUNDED"
  },
  "dotsOptions": {
    "themeColor": {
      "colors": [
        "#1F3A5F",
        "#F4EDE4"
      ],
      "direction": "135deg",
      "stops": [
        "0%",
        "100%"
      ],
      "type": "THEME_COLOR_TYPE_LINEAR"
    },
    "type": "DOTS_TYPE_ROUNDED"
  },
  "errorCorrectionLevel": "H",
  "height": 1024,
  "hideBackgroundDots": true,
  "outputFileFormat": "OUTPUT_FILE_FORMAT_WEBP",
  "shape": "SHAPE_SQUARE",
  "width": 1024
}'
```

Response 200

```json
{
  "qrcodeDesign": {
    "backgroundOptions": {
      "themeColor": {
        "colors": [
          "#1F3A5F",
          "#F4EDE4"
        ],
        "direction": "135deg",
        "stops": [
          "0%",
          "100%"
        ],
        "type": "THEME_COLOR_TYPE_LINEAR"
      }
    },
    "centralImageMargin": 8,
    "centralImageMediaId": "5f1c2d3e-4b5a-6c7d-8e9f-0a1b2c3d4e5f",
    "centralImageSignedUrl": "https://cdn.linkbreakers.com/media/5f1c2d3e/menu-cover.png",
    "centralImageSize": 0.3,
    "cornersDotOptions": {
      "themeColor": {
        "colors": [
          "#1F3A5F",
          "#F4EDE4"
        ],
        "direction": "135deg",
        "stops": [
          "0%",
          "100%"
        ],
        "type": "THEME_COLOR_TYPE_LINEAR"
      },
      "type": "CORNERS_DOT_TYPE_DOT"
    },
    "cornersSquareOptions": {
      "themeColor": {
        "colors": [
          "#1F3A5F",
          "#F4EDE4"
        ],
        "direction": "135deg",
        "stops": [
          "0%",
          "100%"
        ],
        "type": "THEME_COLOR_TYPE_LINEAR"
      },
      "type": "CORNERS_SQUARE_TYPE_EXTRA_ROUNDED"
    },
    "createdAt": "2026-03-14T09:30:00Z",
    "dotsOptions": {
      "themeColor": {
        "colors": [
          "#1F3A5F",
          "#F4EDE4"
        ],
        "direction": "135deg",
        "stops": [
          "0%",
          "100%"
        ],
        "type": "THEME_COLOR_TYPE_LINEAR"
      },
      "type": "DOTS_TYPE_ROUNDED"
    },
    "errorCorrectionLevel": "H",
    "hasCentralImage": true,
    "height": 1024,
    "hideBackgroundDots": true,
    "id": "a8c5e111-8894-4f8a-b5db-9efe0d12a210",
    "outputFileFormat": "OUTPUT_FILE_FORMAT_PNG",
    "shape": "SHAPE_SQUARE",
    "updatedAt": "2026-03-18T16:05:00Z",
    "width": 1024
  }
}
```

### Parameters

`Idempotency-Key` string 

header

A unique value per request, such as a UUID, that makes retrying it safe: a retry with the same key and body returns the first response instead of acting twice.

### Request body

`linkId` string 

Required

The ID of the link to apply the template to (UUID)

`qrcodeTemplateId` string

Template to apply, addressed by ID. Use this for workspace templates that have never been published and therefore have no slug.

`templateSlug` string

Slug of the QR code template to apply.

Only published and built-in templates carry a slug: it is the public identifier the gallery and the marketing site address them by. Supply qrcodeTemplateId instead for a workspace's own templates, which have none. Exactly one of the two is required.

### Response

200

`qrcodeDesign` object

The updated QR code design with the template's styling applied

Fields: [The qr code design object](#qr-code-designs-object).

Errors answer 4xx or 5xx with the [error object](https://linkbreakers.com/help/api#errors), and `429` past the [rate limit](https://linkbreakers.com/help/api#rate-limits).

Request

```bash
curl -X POST "https://api.linkbreakers.com/v1/qrcode-designs/apply-template" \
  -H "Authorization: Bearer $LINKBREAKERS_TOKEN" \
  -H "Content-Type: application/json" \
  --data '{
  "linkId": "1b9d6bcd-bbfd-4b2d-9b5d-ab8dfbbd4bed",
  "qrcodeTemplateId": "0d7f4d9c-1aef-4ed4-821b-321a3f9cba1d",
  "templateSlug": "google-dinosaur"
}'
```

Response 200

```json
{
  "qrcodeDesign": {
    "backgroundOptions": {
      "themeColor": {
        "colors": [
          "#1F3A5F",
          "#F4EDE4"
        ],
        "direction": "135deg",
        "stops": [
          "0%",
          "100%"
        ],
        "type": "THEME_COLOR_TYPE_LINEAR"
      }
    },
    "centralImageMargin": 8,
    "centralImageMediaId": "5f1c2d3e-4b5a-6c7d-8e9f-0a1b2c3d4e5f",
    "centralImageSignedUrl": "https://cdn.linkbreakers.com/media/5f1c2d3e/menu-cover.png",
    "centralImageSize": 0.3,
    "cornersDotOptions": {
      "themeColor": {
        "colors": [
          "#1F3A5F",
          "#F4EDE4"
        ],
        "direction": "135deg",
        "stops": [
          "0%",
          "100%"
        ],
        "type": "THEME_COLOR_TYPE_LINEAR"
      },
      "type": "CORNERS_DOT_TYPE_DOT"
    },
    "cornersSquareOptions": {
      "themeColor": {
        "colors": [
          "#1F3A5F",
          "#F4EDE4"
        ],
        "direction": "135deg",
        "stops": [
          "0%",
          "100%"
        ],
        "type": "THEME_COLOR_TYPE_LINEAR"
      },
      "type": "CORNERS_SQUARE_TYPE_EXTRA_ROUNDED"
    },
    "createdAt": "2026-03-14T09:30:00Z",
    "dotsOptions": {
      "themeColor": {
        "colors": [
          "#1F3A5F",
          "#F4EDE4"
        ],
        "direction": "135deg",
        "stops": [
          "0%",
          "100%"
        ],
        "type": "THEME_COLOR_TYPE_LINEAR"
      },
      "type": "DOTS_TYPE_ROUNDED"
    },
    "errorCorrectionLevel": "H",
    "hasCentralImage": true,
    "height": 1024,
    "hideBackgroundDots": true,
    "id": "a8c5e111-8894-4f8a-b5db-9efe0d12a210",
    "outputFileFormat": "OUTPUT_FILE_FORMAT_PNG",
    "shape": "SHAPE_SQUARE",
    "updatedAt": "2026-03-18T16:05:00Z",
    "width": 1024
  }
}
```

### Parameters

`id` string 

path

Required

The ID of the QR code design to update (UUID)

`Idempotency-Key` string 

header

A unique value per request, such as a UUID, that makes retrying it safe: a retry with the same key and body returns the first response instead of acting twice.

### Request body

`backgroundOptions` object

The styling options for the background

1 child attribute

`themeColor` object

Color configuration supporting solid colors and gradients

4 child attributes

`colors` array of string 

Required

Color values in render order (hex, rgb/rgba, hsl/hsla).

`direction` string

Optional direction for linear gradients (e.g. "135deg", "to right").

`stops` array of string

Optional stop offsets aligned with `colors` (e.g. "0%", "50%", "100%").

`type` enum 

Required

Color type

Allowed values

* `THEME_COLOR_TYPE_SOLID`
* `THEME_COLOR_TYPE_LINEAR`
* `THEME_COLOR_TYPE_RADIAL`

`centralImageDelete` boolean

Set this to true to delete the central image. It can't be used at the same time as centralImageMediaId.

`centralImageMargin` integer (int32)

The margin around the central image in pixels

`centralImageMediaId` string

An image from the workspace's media library to use as the central image (UUID). Upload the file first (POST /v1/media/uploads, a PUT of its bytes, then its complete call) or import it from a URL, and pass the media id: the image itself is never sent here. Any READY image of at most 3 MB can be a QR code logo; anything else is refused with MEDIA\_NOT\_ALLOWED\_HERE, and media of another workspace or an upload not completed with QRCODE\_DESIGN\_INVALID\_LOGO\_MEDIA. The design keeps its own copy of the image, and the media lists this QR code among its references.

`centralImageSize` number (double)

The size of the central image relative to the QR code

`cornersDotOptions` object

The styling options for the dot corners

2 child attributes

`themeColor` object

Color configuration supporting solid colors and gradients

4 child attributes

`colors` array of string 

Required

Color values in render order (hex, rgb/rgba, hsl/hsla).

`direction` string

Optional direction for linear gradients (e.g. "135deg", "to right").

`stops` array of string

Optional stop offsets aligned with `colors` (e.g. "0%", "50%", "100%").

`type` enum 

Required

Color type

Allowed values

* `THEME_COLOR_TYPE_SOLID`
* `THEME_COLOR_TYPE_LINEAR`
* `THEME_COLOR_TYPE_RADIAL`

`type` enum

Rendering style for the dot corners

Allowed values

* `CORNERS_DOT_TYPE_DOT`
* `CORNERS_DOT_TYPE_SQUARE`
* `CORNERS_DOT_TYPE_HEXAGON`
* `CORNERS_DOT_TYPE_OCTAGON`
* `CORNERS_DOT_TYPE_TEARDROP`
* `CORNERS_DOT_TYPE_STAR`

`cornersSquareOptions` object

The styling options for the square corners

2 child attributes

`themeColor` object

Color configuration supporting solid colors and gradients

4 child attributes

`colors` array of string 

Required

Color values in render order (hex, rgb/rgba, hsl/hsla).

`direction` string

Optional direction for linear gradients (e.g. "135deg", "to right").

`stops` array of string

Optional stop offsets aligned with `colors` (e.g. "0%", "50%", "100%").

`type` enum 

Required

Color type

Allowed values

* `THEME_COLOR_TYPE_SOLID`
* `THEME_COLOR_TYPE_LINEAR`
* `THEME_COLOR_TYPE_RADIAL`

`type` enum

Rendering style for the square corners

Allowed values

* `CORNERS_SQUARE_TYPE_DOT`
* `CORNERS_SQUARE_TYPE_SQUARE`
* `CORNERS_SQUARE_TYPE_EXTRA_ROUNDED`
* `CORNERS_SQUARE_TYPE_HEXAGON`
* `CORNERS_SQUARE_TYPE_OCTAGON`
* `CORNERS_SQUARE_TYPE_LEAF`

`dotsOptions` object

The styling options for the dots

2 child attributes

`themeColor` object

Color configuration supporting solid colors and gradients

4 child attributes

`colors` array of string 

Required

Color values in render order (hex, rgb/rgba, hsl/hsla).

`direction` string

Optional direction for linear gradients (e.g. "135deg", "to right").

`stops` array of string

Optional stop offsets aligned with `colors` (e.g. "0%", "50%", "100%").

`type` enum 

Required

Color type

Allowed values

* `THEME_COLOR_TYPE_SOLID`
* `THEME_COLOR_TYPE_LINEAR`
* `THEME_COLOR_TYPE_RADIAL`

`type` enum

Rendering style for data dots

Allowed values

* `DOTS_TYPE_SQUARE`
* `DOTS_TYPE_DOTS`
* `DOTS_TYPE_BUBBLY_DOTS`
* `DOTS_TYPE_CIRCUIT_CHIP`
* `DOTS_TYPE_ROUNDED`
* `DOTS_TYPE_EXTRA_ROUNDED`
* `DOTS_TYPE_CLASSY`
* `DOTS_TYPE_CLASSY_ROUNDED`
* `DOTS_TYPE_HEXAGON`
* `DOTS_TYPE_OCTAGON`

`errorCorrectionLevel` string

The error correction level of the QR code

`height` integer (int32)

The height of the QR code

`hideBackgroundDots` boolean

Whether to hide the background dots

`outputFileFormat` enum

The output file format for the QR code.

Allowed values

* `OUTPUT_FILE_FORMAT_SVG` Scalable Vector Graphics format for infinite resolution
* `OUTPUT_FILE_FORMAT_PNG` Portable Network Graphics format with transparency support
* `OUTPUT_FILE_FORMAT_JPEG` Joint Photographic Experts Group format for compressed images
* `OUTPUT_FILE_FORMAT_WEBP` WebP format for modern web-optimized compression
* `OUTPUT_FILE_FORMAT_UNSPECIFIED` Output format not specified (defaults to PNG server-side)

`shape` enum

The shape of the QR code.

Allowed values

* `SHAPE_SQUARE` Traditional square modules for QR code data points
* `SHAPE_CIRCLE` Circular modules for a rounded visual appearance
* `SHAPE_UNSPECIFIED` Shape not specified (defaults to square modules)

`width` integer (int32)

The width of the QR code

### Response

200

`qrcodeDesign` object

The updated QR code design

Fields: [The qr code design object](#qr-code-designs-object).

Errors answer 4xx or 5xx with the [error object](https://linkbreakers.com/help/api#errors), and `429` past the [rate limit](https://linkbreakers.com/help/api#rate-limits).

Request

```bash
curl -X PATCH "https://api.linkbreakers.com/v1/qrcode-designs/{id}" \
  -H "Authorization: Bearer $LINKBREAKERS_TOKEN" \
  -H "Content-Type: application/json" \
  --data '{
  "backgroundOptions": {
    "themeColor": {
      "colors": [
        "#1F3A5F",
        "#F4EDE4"
      ],
      "direction": "135deg",
      "stops": [
        "0%",
        "100%"
      ],
      "type": "THEME_COLOR_TYPE_LINEAR"
    }
  },
  "centralImageDelete": false,
  "centralImageMargin": 8,
  "centralImageMediaId": "5f1c2d3e-4b5a-6c7d-8e9f-0a1b2c3d4e5f",
  "centralImageSize": 0.3,
  "cornersDotOptions": {
    "themeColor": {
      "colors": [
        "#1F3A5F",
        "#F4EDE4"
      ],
      "direction": "135deg",
      "stops": [
        "0%",
        "100%"
      ],
      "type": "THEME_COLOR_TYPE_LINEAR"
    },
    "type": "CORNERS_DOT_TYPE_DOT"
  },
  "cornersSquareOptions": {
    "themeColor": {
      "colors": [
        "#1F3A5F",
        "#F4EDE4"
      ],
      "direction": "135deg",
      "stops": [
        "0%",
        "100%"
      ],
      "type": "THEME_COLOR_TYPE_LINEAR"
    },
    "type": "CORNERS_SQUARE_TYPE_EXTRA_ROUNDED"
  },
  "dotsOptions": {
    "themeColor": {
      "colors": [
        "#1F3A5F",
        "#F4EDE4"
      ],
      "direction": "135deg",
      "stops": [
        "0%",
        "100%"
      ],
      "type": "THEME_COLOR_TYPE_LINEAR"
    },
    "type": "DOTS_TYPE_ROUNDED"
  },
  "errorCorrectionLevel": "H",
  "height": 1024,
  "hideBackgroundDots": true,
  "outputFileFormat": "OUTPUT_FILE_FORMAT_SVG",
  "shape": "SHAPE_CIRCLE",
  "width": 1024
}'
```

Response 200

```json
{
  "qrcodeDesign": {
    "backgroundOptions": {
      "themeColor": {
        "colors": [
          "#1F3A5F",
          "#F4EDE4"
        ],
        "direction": "135deg",
        "stops": [
          "0%",
          "100%"
        ],
        "type": "THEME_COLOR_TYPE_LINEAR"
      }
    },
    "centralImageMargin": 8,
    "centralImageMediaId": "5f1c2d3e-4b5a-6c7d-8e9f-0a1b2c3d4e5f",
    "centralImageSignedUrl": "https://cdn.linkbreakers.com/media/5f1c2d3e/menu-cover.png",
    "centralImageSize": 0.3,
    "cornersDotOptions": {
      "themeColor": {
        "colors": [
          "#1F3A5F",
          "#F4EDE4"
        ],
        "direction": "135deg",
        "stops": [
          "0%",
          "100%"
        ],
        "type": "THEME_COLOR_TYPE_LINEAR"
      },
      "type": "CORNERS_DOT_TYPE_DOT"
    },
    "cornersSquareOptions": {
      "themeColor": {
        "colors": [
          "#1F3A5F",
          "#F4EDE4"
        ],
        "direction": "135deg",
        "stops": [
          "0%",
          "100%"
        ],
        "type": "THEME_COLOR_TYPE_LINEAR"
      },
      "type": "CORNERS_SQUARE_TYPE_EXTRA_ROUNDED"
    },
    "createdAt": "2026-03-14T09:30:00Z",
    "dotsOptions": {
      "themeColor": {
        "colors": [
          "#1F3A5F",
          "#F4EDE4"
        ],
        "direction": "135deg",
        "stops": [
          "0%",
          "100%"
        ],
        "type": "THEME_COLOR_TYPE_LINEAR"
      },
      "type": "DOTS_TYPE_ROUNDED"
    },
    "errorCorrectionLevel": "H",
    "hasCentralImage": true,
    "height": 1024,
    "hideBackgroundDots": true,
    "id": "a8c5e111-8894-4f8a-b5db-9efe0d12a210",
    "outputFileFormat": "OUTPUT_FILE_FORMAT_PNG",
    "shape": "SHAPE_SQUARE",
    "updatedAt": "2026-03-18T16:05:00Z",
    "width": 1024
  }
}
```

### Parameters

`id` string 

path

Required

The ID of the QR code design to delete

### Response

200

An empty JSON object.

Errors answer 4xx or 5xx with the [error object](https://linkbreakers.com/help/api#errors), and `429` past the [rate limit](https://linkbreakers.com/help/api#rate-limits).

Request

```bash
curl -X DELETE "https://api.linkbreakers.com/v1/qrcode-designs/{id}" \
  -H "Authorization: Bearer $LINKBREAKERS_TOKEN"
```

---

Source: https://linkbreakers.com/help/api/qr-code-designs
