Update a custom service in a site's privacy & cookie policy
update_site_pcp_custom_serviceUpdate a fully custom service of a site in every site language. Use the id returned by list_site_pcp_custom_services or create_site_pcp_custom_service. Send only the fields to change; omitted fields keep their current value. A service that so far exists in one language only is extended to every site language on its first update, so that request must bring translations for the other languages, or use "all".
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | ID of the custom service (from list/get/create) | |
| site_id | Yes | Site ID | |
| uses_ai | No | Whether the service uses artificial intelligence. Omit to keep the current value. | |
| purpose_id | No | ID of the purpose, as list_pcp_services shows under purpose for each catalog service. 0 for no specific purpose, which is the default. Omit to keep the current value. | |
| translations | No | Name and text of the service per site language, keyed by language code as get_site lists them, or one entry under the key "all" for the same text in every language. Every site language needs text; a missing one is refused with MISSING_TRANSLATIONS, whose details list the missing codes. On update, a language left out keeps its text. HTML is stripped from the name; the content keeps i, u, b, a, strong and em tags. | |
| in_cookie_policy | No | Whether the service appears in the cookie policy; its data types are then the tracker data type only. Default false. Omit to keep the current value. | |
| provided_by_site | No | true when the site itself provides the service, false when a third party does. Default true. Omit to keep the current value. | |
| in_privacy_policy | No | Whether the service appears in the privacy policy. Default false, but at least one of in_privacy_policy and in_cookie_policy must be true. Omit to keep the current value. | |
| storage_durations | No | How long this service's cookies and trackers are stored. Replaces the service's durations. Omit to keep the current value. | |
| third_party_service | No | US state privacy laws: true marks the provider as a third party; false marks it as a service provider, processor or contractor. Omit to keep the current value. | |
| ccpa_constitutes_sale | No | Processing by this service is a sale of personal information in California (CCPA). Omit to keep the current value. | |
| ai_interaction_subtype | No | Kinds of AI interaction the service has, when uses_ai is true. Omit to keep the current value. | |
| other_us_laws_constitutes_sale | No | Processing by this service is a sale under the other US state privacy laws (Virginia, Colorado, Connecticut, Utah, Texas, Oregon, Nevada and other states). Omit to keep the current value. | |
| ccpa_sharing_personal_information | No | Processing by this service is sharing of personal information in California (CCPA). Omit to keep the current value. | |
| other_us_laws_targeted_advertising | No | Processing by this service is targeted advertising under the other US state privacy laws (Virginia, Colorado, Connecticut, Utah, Texas, Oregon and other states). Omit to keep the current value. |