Update a website
Changes the display name, timezone, reporting currency, chart colour, cookieless mode, additional domains, exclusions (IPs, paths, countries, host names, referrer spam), the public dashboard (regenerateShareId: true issues a new link), the bot card and blocked crawler companies, attack mode and whether viewers see revenue. Fields left out stay the same; lists replace the stored list. The domain is changed in the dashboard. Needs the admin role on the website.
Related: List websites and Add a website in Websites.
Request
Path parameters
websitestringrequiredWebsite id or domain, e.g. example.com
1–253 characters
Headers
AuthorizationstringrequiredBearer followed by an account token or an OAuth access token with the settings:write scope.
Content-TypestringrequiredSend the body as JSON.
One of: application/json
Body fields
namestringoptional1–80 characters
timezonestringoptionalcurrencystringoptionalOne of: USD, EUR, GBP, INR, JPY, CAD, AUD, CHF, SEK, NOK, DKK, PLN, CZK, BRL, MXN, SGD, HKD, NZD, ZAR, KRW, CNY, TRY, AED, ILS
colourstringoptionalPattern: ^#[0-9a-f]{6}$
cookielessbooleanoptionaladditionalDomainsstring[]optionalUp to 20 items
exclusionsobjectoptionalexclusions.ipsstring[]optionalUp to 200 items
exclusions.pathsstring[]optionalUp to 200 items
exclusions.countriesstring[]optionalUp to 200 items
exclusions.hostnamesstring[]optionalUp to 200 items
exclusions.referrerSpambooleanoptionalpublicDashboardobjectoptionalpublicDashboard.enabledbooleanoptionalpublicDashboard.expirystringoptionalOne of: 24h, 7d, 14d, 30d, 90d, never
publicDashboard.showRevenuebooleanoptionalpublicDashboard.showGoalsbooleanoptionalpublicDashboard.showLocationbooleanoptionalpublicDashboard.showPathsbooleanoptionalpublicDashboard.showBuyersbooleanoptionalpublicDashboard.showAiTrafficbooleanoptionalpublicDashboard.regenerateShareIdbooleanoptionalbotSettingsobjectoptionalbotSettings.showCardbooleanoptionalbotSettings.blockedCompaniesstring[]optionalUp to 200 items
botSettings.filterDatacentersbooleanoptionalattackModeobjectoptionalattackMode.enabledbooleanoptionalattackMode.autobooleanoptionalattackMode.levelstringoptionalOne of: low, medium, high
viewerRevenuebooleanoptionalResponse
The website.
{
"status": "string",
"data": {
"id": "string",
"domain": "string",
"name": "string",
"timezone": "string",
"currency": "USD",
"colour": "string",
"trackingId": "string",
"role": "viewer",
"archived": true,
"archivedAt": "2026-01-01T00:00:00.000Z",
"createdAt": "2026-01-01T00:00:00.000Z"
}
}Response fields
| Field | Type | Description |
|---|---|---|
| status | "ok" | |
| data | object | |
| data.id | string | |
| data.domain | string | |
| data.name | string | |
| data.timezone | string | |
| data.currency | string | |
| data.colour | string | |
| data.trackingId | string | |
| data.role | string | null | null | |
| data.archived | boolean | |
| data.archivedAt | string (date-time) | null | null | |
| data.createdAt | string (date-time) |