站点
列出、创建、读取、更新和删除站点。
Lists the team's sites that the API key can access, in pages of up to 200.
limitintegerMaximum number of results per page.
cursorstring | 任意 | nullOpaque pagination cursor from the previous response.
Creates a site in the team and returns it. Install the tracking script from Get tracking script to start collecting data.
namestring必填Display name of the site.
domainstring必填Domain of the website, without protocol, e.g. example.com.
publicEnabledboolean必填Whether the public shared dashboard is enabled.
publicSlugstringSlug of the public dashboard URL. Omit it to have one generated.
Returns one site.
siteIdstring必填ID of the site (see List sites).
Updates a site's name, domain, or public sharing. Send only the fields to change; at least one is required.
siteIdstring必填ID of the site (see List sites).
namestringdomainstringpublicEnabledbooleanpublicSlugstringDeletes the site and all of its analytics data. This cannot be undone.
siteIdstring必填ID of the site (see List sites).