Skip to main content

addSite

Creates a site using the lowercased registrable domain of the URL, enabling session recording and refreshing the tracking script. A missing scheme is added; subdomains belong to the same site, and an existing domain returns an error. Returns the caller's full site list, sorted by name and ID. Requires sites create access.

addSite(
url: String!
): [Site!]

Arguments​

addSite.url ● String! non-null scalar​

Site URL or hostname; a scheme is added and the registrable domain becomes the site name.

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.