cloudflare.updateNotificationPolicy overwrites one notification policy.
automations/cloudflare-update-notification-policy.automation.ts
{ account } selects a static project account binding.
Returns the updated policy ID.Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
Overwrites one notification policy.
cloudflare.updateNotificationPolicy overwrites one notification policy.
import { automation, onDashboardRun } from "automate.ax"
import { cloudflare } from "automate.ax/cloudflare"
export default automation("Update notification policy", () => {
onDashboardRun({ title: "Update notification policy" })
cloudflare.updateNotificationPolicy({
accountId: "account-id",
policyId: "policy-id",
name: "Origin alerts",
alertType: "health_check_status_notification",
enabled: true,
mechanisms: { email: [{ id: "ops@example.com" }] },
})
})
{ account } selects a static project account binding.
Returns the updated policy ID.