Skip to main content

regenerateSiteApiKey

Replaces an editable site's API key and returns the site with the new key. Use updateSitePublicTrackingApi to change enablement; rotation requests a tracking script refresh. Requires API edit access.

regenerateSiteApiKey(
siteId: Int!
): Site

Arguments​

regenerateSiteApiKey.siteId ● Int! non-null scalar​

Site ID from sites.

Type​

Site object​

A site with derived activity/install status plus optional tracking and settings data normalized for GraphQL clients. Returned by site and sites.