Change privacy and cookie settings
update_complianceChange the site's privacy and compliance settings: turn the cookie consent banner on or off and style it, pick a privacy mode (e.g. eu_uk_strict for GDPR, california for CCPA), set tracking categories, data retention, the privacy-request contact and legal document links. The ONLY way to change the cookie banner — never through refine_site. Only the fields sent change. Takes effect on the next publish.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| site_id | Yes | The site to act on | |
| tracking | No | Which tracking categories are allowed. | |
| retention | No | How long form submissions and contacts are kept, and whether old ones are deleted or anonymised. | |
| user_goal | No | Optional: the user's goal behind this call, in one short sentence of plain words (e.g. "add a page so customers can book tables"). No names, emails or other personal details. | |
| text_color | No | ||
| banner_size | No | ||
| respect_gpc | No | Honour Global Privacy Control browser signals. | |
| accent_color | No | ||
| banner_style | No | minimal = a simple bar, detailed = with cookie categories, modal = a centred popup. | |
| privacy_mode | No | The privacy preset that sets consent defaults and runtime behaviour. | |
| legal_dpa_url | No | ||
| legal_scc_url | No | ||
| custom_message | No | The banner's own text. | |
| banner_position | No | ||
| consent_version | No | Changing it asks returning visitors to consent again. | |
| show_reject_all | No | ||
| background_color | No | ||
| show_preferences | No | ||
| analytics_default | No | ||
| cookie_policy_url | No | ||
| marketing_default | No | ||
| functional_default | No | ||
| privacy_policy_url | No | ||
| consent_expiry_days | No | ||
| privacy_request_url | No | ||
| cookie_banner_enabled | No | Show the cookie consent banner. | |
| reopen_widget_enabled | No | Show the floating privacy-settings button. | |
| legal_subprocessor_url | No | ||
| block_pre_consent_scripts | No | Hold optional third-party scripts until the visitor consents to their category. | |
| block_pre_consent_storage | No | ||
| privacy_request_contact_email | No | Where privacy (access/deletion) requests go. |