Update alert
PUT https://datafa.st/api/v1/admin/websites/{websiteId}/alerts/{alertId}
Update an alert name, watched goal, email template, or enabled state. Send only the fields you want to change.
Disabling an alert (
isEnabled: false) stops emails without deleting the configuration.Related: Alerts announcement · Custom goals
Request
Path parameters
websiteId_id field). Example: 665f0b3c4d2e1a0012345678.alertIdBody parameters
nametrigger.goalName"purchase". Lowercased when saved. Pick from List tracked goals.template.message"Someone just signed up on your site."template.subject"New signup on example.com". Defaults to a standard alert subject when omitted.isEnabledtrue to enable; false to pause emails.Example request body
{
"name": "New signup alert",
"trigger": { "goalName": "signup" },
"template": {
"subject": "New signup!",
"message": "A visitor just completed the signup goal."
},
"isEnabled": true
}
Response
Returns a JSON object with
status: "success" and endpoint-specific fields in data.Response fields
data[]._iddata[].websiteIddata[].namedata[].trigger.typegoal.data[].trigger.goalNamedata[].destination.typeemail.data[].template.subjectdata[].template.messagedata[].isEnableddata[].recentLogsAuthentication
Use a
dft_ account token with alerts: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
See API errors for the standard error envelope, auth failures, validation errors, permission errors, and rate limits.