Change where monitoring email goes, and whether it is sent
set_monitoring_settingsUse this when the user wants monitoring notifications for a site to go somewhere else, or wants to stop or restart them — routing alerts to a shared inbox, or quietening a site during a rebuild. WRITES to this website's Inclusify configuration, never to the site itself. Three independent settings, all optional: the notification email address, whether regression ALERTS are sent, and whether the periodic DIGEST is sent. Anything you leave out is left exactly as it is, so you can change one without knowing the other two. Pass an empty string for the email to clear the override and fall back to the account's billing address. This REQUIRES CONFIRMATION — call without "confirm" first, show the user the preview, and call again with the token once they agree — because turning alerts off or repointing them is a change that hides its own consequences: the site can regress and nobody hears. The PREVIOUS recipient is emailed a record with a link to undo it, which is deliberate — the person who just stopped receiving these is the one who needs to know. It does not change what is monitored: use add_monitored_pages for that.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| No | Where monitoring notifications should go. An empty string clears the override so they fall back to the account's billing address. Omit to leave it unchanged. | ||
| confirm | No | Leave this out on the first call to get a preview of exactly what would change, plus a confirmation token. Call again with the same arguments and that token to apply the change. The token lasts 10 minutes and works once. | |
| website | Yes | The website domain as registered in Inclusify, e.g. "example.com". | |
| alertsEnabled | No | Whether regression alerts are sent when the site gets worse. Omit to leave unchanged. | |
| digestEnabled | No | Whether the periodic summary digest is sent. Omit to leave unchanged. |