Skip to main content
PATCH
Update a site

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

site
string
required

The site: its domain as registered (example.com), or its site id.

Body

application/json
name
string

The site's name, as the dashboard shows it.

Required string length: 1 - 100
domain
string

The site's hostname, subdomains included. A domain another site of the workspace holds answers 409 DOMAIN_TAKEN.

Required string length: 3 - 253
Pattern: ^((\*\.)|((?!-)[a-z0-9-]{0,63}[a-z0-9]\.))+[a-z]{2,63}$
timezone
string

IANA timezone every day boundary falls in, such as Europe/Warsaw.

revenueMode
enum<string>

What the site's dashboard leads with: traffic, balanced or revenue. Display only: nothing stored and no figure of the API changes.

Available options:
traffic,
balanced,
revenue
attributionModel
enum<string>

Which pageview before a sale takes its credit in revenue split by page, source or campaign: the last, the first, or every one equally (linear). Applied when a report runs, so a change re-credits every past sale.

Available options:
last,
first,
linear
attributionLookback
enum<number>

Days before a sale a pageview may lie and still earn credit: 7, 14, 30 or 90. Applied when a report runs, so a change re-credits every past sale.

Available options:
7,
14,
30,
90
thankYouPaths
string[]

Paths attribution never credits as a touch, * wildcards allowed: the page a checkout returns to. Applied when a report runs, so a change re-credits every past sale.

Maximum array length: 100
Required string length: 1 - 500
Pattern: ^\/.*
keptQueryParams
string[]

Query parameter names ingest keeps on a page's URL, stripping every other one. A change reaches new events only.

Maximum array length: 50
Required string length: 1 - 64
Pattern: ^[A-Za-z0-9._~-]+$
excludedIps
string[]

IP addresses and CIDR ranges whose events ingest drops. No visitor IP is stored, so a change reaches new events only.

Maximum array length: 100
Required string length: 1 - 64
excludedPaths
string[]

Paths whose events ingest drops, * wildcards allowed. A change reaches new events only.

Maximum array length: 100
Required string length: 1 - 500
Pattern: ^\/.*
extraHostnames
string[]

Hostnames ingest counts besides the domain and its subdomains: an exact name, or *.example.com for that domain and its subdomains. A change reaches new events only.

Maximum array length: 20
Required string length: 1 - 253
Pattern: ^(?:\*\.)?(?:(?!-)[a-z0-9-]{0,62}[a-z0-9]\.)+[a-z]{2,63}$

Response

OK

data
object
required