Update privacy & cookie policy
update_privacy_cookie_policyUpdate the Privacy & Cookie Policy document for a site: its badge style and its cookie policy (add or remove it, strictly necessary cookies, storage durations of the site's own cookies). Send only the fields to change; omitted fields keep their current value. A request with several fields is all-or-nothing. strictly_necessary_cookies and storage_durations need a version 2 cookie policy: a site with a legacy cookie policy is refused with "requires the privacy policy to have a cookie policy" even though has_cookie_policy is true. Do not retry the same call; tell the user instead.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| site_id | Yes | Site ID | |
| configuration | No | Policy display configuration | |
| has_cookie_policy | No | true adds the cookie policy to the privacy policy, false removes it, in every language. Adding it can be refused if the site's plan does not include it. Omit to keep the current value. | |
| storage_durations | No | How long the site's own cookies and trackers are stored. Replaces the current durations. Requires a cookie policy with strictly_necessary_cookies true; both can be set in the same call. Omit to keep the current durations. | |
| strictly_necessary_cookies | No | Whether the site uses technical cookies that are strictly necessary for the operation or delivery of the service. Requires a cookie policy, which can be added in the same call with has_cookie_policy. Omit to keep the current value. |