Updates the cookie banner settings.
You can only call this method when authenticated as a Wix app or Wix user identity.
Cookie banner settings to update.
Updated cookie banner settings.
Update a site's cookie banner settings using an API key
curl POST 'https://wixapis.com/cookie-consent/v1/cookie-banner-settings/update' \
-H 'Authorization: <AUTH>' \
-H 'wix-site-id: <SITEID>' \
-d '{
"settings": {
"cookiePolicyRequirementApproved": true,
"texts": {
"accept.cookies.button": "Accept",
"open.settings.button": "Settings",
"view.privacy.policy": "Privacy Policy",
"decline.all.button": "Decline All",
"policy.banner.text": "We use cookies on our website to see how you interact with it. By accepting, you agree to our use of such cookies.",
"policy.external.url": " ",
"display.save.default": "Save",
"revisit.settings.text": "Cookie settings",
"advanced.category.essential.headline": "Essential Cookies",
"advanced.category.essential.paragraph": "These cookies enable core functionality such as security, verification of identity and network management. These cookies can't be disabled.",
"advanced.category.marketing.headline": "Enable Marketing Cookies",
"advanced.category.marketing.paragraph": "These cookies are used to track advertising effectiveness to provide a more relevant service and deliver better ads to suit your interests.",
"advanced.category.functional.headline": "Enable Functional Cookies",
"advanced.category.functional.paragraph": "These cookies collect data to remember choices users make to improve and give a more personalised experience. ",
"advanced.category.analytics.headline": "Enable Analytics Cookies",
"advanced.category.analytics.paragraph": "These cookies help us to understand how visitors interact with our website, discover errors and provide a better overall analytics."
},
"theme": "custom",
"audience": "all_visitors",
"declineAllConfig": {
"enabled": false,
},
"revisitSettingsConfig": {
"enabled": false,
"buttonPosition": "bottom_left"
},
"expiryDate": "1970-01-01T00:00:00.000Z",
"enabled": false,
"customThemeConfig": {
"primaryColor": {
"value": "#60A672"
},
"secondaryColor": {
"value": "#C23F3F"
},
"fontFamily": "\"helvetica-w01-light\",\"helvetica-w02-light\",sans-serif",
"fontSize": "15px"
}
}
}'
{
"settings": {
"appEnabled": true,
"audience": "all_visitors",
"cookiePolicyRequirementApproved": true,
"declineAllConfig": {
"enabled": false,
"geo": []
},
"expiryDate": "1970-01-01T00:00:00Z",
"privacyPolicyPage": "terms-and-coniditions",
"privacyPolicyType": "page_on_site",
"texts": {
"accept.cookies.button": "Accept12",
"advanced.category.analytics.headline": "Enable Analytics Cookies",
"advanced.category.analytics.paragraph": "These cookies help us to understand how visitors interact with our website, discover errors and provide a better overall analytics.",
"advanced.category.essential.headline": "Essential Cookies",
"advanced.category.essential.paragraph": "These cookies enable core functionality such as security, verification of identity and network management. These cookies can't be disabled.",
"advanced.category.functional.headline": "Enable Functional Cookies",
"advanced.category.functional.paragraph": "These cookies collect data to remember choices users make to improve and give a more personalised experience. ",
"advanced.category.marketing.headline": "Enable Marketing Cookies",
"advanced.category.marketing.paragraph": "These cookies are used to track advertising effectiveness to provide a more relevant service and deliver better ads to suit your interests.",
"decline.all.button": "Decline All",
"display.save.default": "Save",
"open.settings.button": "Settings",
"policy.banner.text": "We use cookies on our website to see how you interact with it. By accepting, you agree to our use of such cookies.",
"policy.external.url": " ",
"revisit.settings.text": "Cookie settings",
"view.privacy.policy": "Privacy Policy"
},
"theme": "custom",
"revisitSettingsConfig": {
"enabled": false,
"buttonPosition": "bottom_left"
},
"customThemeConfig": {
"primaryColor": {
"name": "color-18",
"value": "#9A9085"
},
"secondaryColor": {
"name": "color-1",
"value": "#FFFFFF"
},
"fontFamily": "\"forum\",serif",
"fontSize": "15px",
"cornerRadius": "square"
},
"enabled": false,
"privacyPolicyPageInfo": null
}
}
This method doesn’t return any custom errors, but may return standard errors. Learn more about standard Wix errors.