Update website
PUT https://datafa.st/api/v1/admin/websites/{websiteId}
Update website settings such as name, timezone, currency, KPI, tracking rules, and notification preferences. Send only the fields you want to change.
Viewers cannot write. Members can update most settings; team management remains owner-only.
Request
Path parameters
websiteId_id field). Example: 665f0b3c4d2e1a0012345678.Body parameters
domainhttps://. Example: "example.com". Must pass DataFast domain validation.name"My SaaS". Optional on create.timezone"America/New_York", "Europe/Paris", "UTC".currency"USD", "EUR".kpi"signup". List names via List tracked goals.kpiColorScheme"orange", "blue".revenueMetric"revenue" or "mrr" when supported.sendWeeklyReportstrue to email weekly analytics summaries.sendViralTrafficAlertstrue to notify on traffic spikes.isPublicDashboardEnabledtrue to enable a shareable public dashboard link.isPublicDataEnabledtrue to expose metrics on public dashboards/widgets.isCookielesstrue for cookieless tracking mode. See script configuration.isAttackModeEnabledtrue to enable attack-mode bot filtering.includeRenewalRevenuetrue to count renewal revenue in KPI totals.allowedHostnames["example.com", "www.example.com"].isAllHostnamesAllowedtrue to accept events from any hostname.excludedIps["203.0.113.10"].excludedPaths["/admin", "/preview"].excludedCountriesexcludedHostnamesExample request body
Send only fields you want to change:
{
"name": "Renamed product",
"timezone": "Europe/Paris",
"currency": "EUR",
"kpi": "signup",
"includeRenewalRevenue": true,
"excludedPaths": ["/admin", "/preview"]
}
Response
Returns a JSON object with
status: "success" and endpoint-specific fields in data.Response fields
data[]._iddata[].domaindata[].namedata[].trackingIddata[].timezonedata[].currencyUSD or EUR.data[].kpidata[].kpiColorSchemedata[].revenueMetricdata[].isCookielessdata[].includeRenewalRevenuedata[].allowedHostnamesdata[].excludedIpsdata[].excludedPathsdata[].excludedCountriesdata[].excludedHostnamesAuthentication
Use a
dft_ account token with settings:write.A
df_ website API key for the same website can also call this route when the path websiteId matches the key's website. Write access with a df_ key is capped at member level — owner-only actions such as team management require a dft_ token and owner role.Errors
400 — No valid fields in body or invalid domain.
403 — Viewer role or website access denied.
See API errors for the standard error envelope, auth failures, validation errors, permission errors, and rate limits.