save_site_source
Create or update an explicitly mapped site. Requires organization workflow-management permission.
Parameters#
site_url: required public HTTP(S) site URL.site_source_id: existing site ID; omit to create.ga4_account_id,ga4_property_id: matching connection and GA4 property. Web streams must match the site.gsc_account_id: Search Console connection whose selected property covers the site.is_primary: choose this site as the organization default.business_key_events: selected GA4 event names; empty means All GA4 key events.paid_account_ids: organization-owned paid accounts explicitly associated with the site.
Omitted connections disconnect them. Existing bindings are preserved by background adoption; incompatible Search Console scope changes are rejected to preserve history. Changing GA4 measurement definitions starts a new backfill contract. This operation never publishes site content or changes campaigns. Call only after a user requests these settings.
Returns the site and separate source states: not connected, selection required, syncing, current, stale, failed or subscription restriction. Sync remains subject to existing subscription rules.