consent_config_floating_icon_upsert
Configures the always-available "Cookie settings" entry point that lets a visitor reopen their consent preferences after they have made a choice.
Configures the always-available "Cookie settings" entry point that lets a visitor reopen their consent preferences after they have made a choice. By default Lessly renders a floating icon in a page corner; you can move it, or bind the entry point to an element the site already has (for example a "Cookie settings" link in the footer) instead of showing the icon. Fields (under `floatingIcon`): enabled — whether to render Lessly's built-in floating icon; position — which corner the icon sits in ("bottom-right" / "bottom-left" / "top-right" / "top-left"); customSelector — a CSS selector for an existing element on the page (e.g. "#footer-cookie-link") whose click opens consent settings, or null to rely on the built-in icon only. To hide the built-in icon (enabled: false) you must provide a customSelector, so the visitor always keeps a way to reopen settings.
Behavior
- HTTP
PATCH /consent/config
Arguments
| Name | Type | Required | Description |
|---|---|---|---|
| floatingIcon | object | • | No description in the catalog. |
Response
| Field | Type | Always | Description |
|---|---|---|---|
| floatingIcon | object | • |
Try it
Configures the always-available "Cookie settings" entry point that lets a visitor reopen their consent preferences after they have made a choice.