# SetFormPlacementQrStyle

> Set a form placement's QR code style. Write access, forms toolset, MCP tool set_form_placement_qr_style. Part of the MISSIN public API: call it with an API…

**Access:** [Write](https://developer.missin.co.uk/get-started/authentication.md#access-levels)

## Variables

| Variable | Type | Required | Accepts | Description |
|---|---|---|---|---|
| `input` | `SetFormPlacementQrStyleInput!` | yes | Input object, below |  |

## Input types

### SetFormPlacementQrStyleInput

| Field | Type | Required | Accepts | Description |
|---|---|---|---|---|
| `placementId` | `UUID!` | yes |  |  |
| `qr` | `JSON` | no | Object, fields below | A QrStyle object. Null clears the override. |

#### `SetFormPlacementQrStyleInput.qr`

| Field | Type | Required | Accepts | Description |
|---|---|---|---|---|
| `preset` | string | no | One of `classic`, `soft`, `dotted`, `diamond`, `accent`, `ink` |  |
| `size` | string | no | One of `m`, `l`, `xl` |  |
| `mode` | string | no | One of `light`, `dark` |  |
| `fg` | string or null | no | matches `^#[0-9a-fA-F]{6}$` |  |
| `eye` | string or null | no | matches `^#[0-9a-fA-F]{6}$` |  |
| `bg` | string or null | no | matches `^#[0-9a-fA-F]{6}$` |  |
| `dots` | string or null | no | One of `square`, `rounded`, `dot`, `diamond` |  |
| `eyes` | string or null | no | One of `square`, `rounded`, `dot` |  |
| `link` | string (uri) or null | no | at most 2048 characters, format uri |  |
| `center` | boolean | no |  |  |

## Call it

```bash curl
curl https://api.missin.co.uk/graphql/v1 \
  -H "Authorization: Bearer $MISSIN_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"operationName":"SetFormPlacementQrStyle","variables":{"input":{"placementId":"00000000-0000-0000-0000-000000000000"}},"extensions":{"persistedQuery":{"version":1,"sha256Hash":"4d47cea31c0e7eba9e65beed90a3c83f49fba553f01bb7e7a59f60d545be7b66"}}}'
```

## Document

```graphql
mutation SetFormPlacementQrStyle($input: SetFormPlacementQrStyleInput!) { __typename setFormPlacementQrStyle(input: $input) { __typename placementId qr userErrors { __typename code field message } } }
```

Source: https://developer.missin.co.uk/reference/forms/set-form-placement-qr-style
