Add a custom service to a site's privacy & cookie policy
create_site_pcp_custom_serviceAdd a fully custom service to a site's privacy & cookie policy: a service described in your own words because the catalog does not list it. For a catalog service use create_site_pcp_service instead. The service is created in every site language at once. Requires an active Privacy & Cookie Policy on the site.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| site_id | Yes | Site ID | |
| uses_ai | No | Whether the service uses artificial intelligence. Omit to use the default. | |
| 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 use the default. | |
| translations | Yes | 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 use the default. | |
| provided_by_site | No | true when the site itself provides the service, false when a third party does. Default true. Omit to use the default. | |
| 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 use the default. | |
| storage_durations | No | How long this service's cookies and trackers are stored. Replaces the service's durations. Omit to use the default. | |
| 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 use the default. | |
| ccpa_constitutes_sale | No | Processing by this service is a sale of personal information in California (CCPA). Omit to use the default. | |
| ai_interaction_subtype | No | Kinds of AI interaction the service has, when uses_ai is true. Omit to use the default. | |
| 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 use the default. | |
| ccpa_sharing_personal_information | No | Processing by this service is sharing of personal information in California (CCPA). Omit to use the default. | |
| 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 use the default. |