---
title: "Update notification settings"
method: PUT
path: "/projects/{id}/notifications"
tags: ["Notifications"]
---

# Update notification settings

`PUT /projects/{id}/notifications`

## Request

- Base URL: `https://api.volcano.dev`
- URL: `https://api.volcano.dev/projects/{id}/notifications`
- Auth: one of:
  - HTTP bearer
  - HTTP bearer

Changes the project's notification settings. Omitted fields keep their
current values, so `{"email": {"enabled": false}}` only turns email off.

Alert emails go only to the project owner's verified account email
address. `email.recipients` may be empty or name that address; any
other list is refused with `400`, and so is any non-empty list while
the owner has no verified address. `email.status` in the response
says whether alerts are being emailed.

Setting `webhook.url` on a project without a webhook generates its
signing secret, returned in `webhook.secret` in this response only.
Changing the URL keeps the secret. An empty `webhook.url` removes the
webhook and its secret.

Outside local mode the webhook must be reachable on the public
internet; a URL naming a private or loopback address is refused, and
so is a delivery to a host name that resolves to one.

## Path parameters

- `id` string, uuid, required

## Request body

- UpdateNotificationSettingsRequest: Omitted fields keep their current values.
  - `email` UpdateNotificationEmail
    - `enabled` boolean
    - `recipients` string[]: Only the project owner's verified account email address is supported. An empty list, or one naming only that address, emails the owner and is saved as an empty list. Any other list is refused as invalid.
  - `webhook` UpdateNotificationWebhook
    - `url` string: An `http` or `https` URL. Surrounding whitespace is trimmed. An empty string removes the webhook and its secret.
  - `scheduler_failures` UpdateSchedulerFailureAlertPolicy
    - `notify_on` 'first_failure' | 'consecutive_failures': When a failing scheduler is announced: on its first failed run, or once `threshold` runs in a row have failed. Either way a streak is announced once, and a scheduler is announced failing at most once an hour.
    - `threshold` integer
    - `notify_on_recovery` boolean

## Response `200`

Saved

- NotificationSettings
  - `project_id` string, uuid, required
  - `email` NotificationEmailSettings, required
    - `enabled` boolean, required: Whether alerts are emailed.
    - `recipients` string[], required: Empty. Alerts are emailed to the project owner's verified account email address, the only recipient supported.
    - `status` 'delivering' | 'disabled' | 'owner_email_unverified', required: Whether alerts are being emailed. `owner_email_unverified` means email is enabled but the project owner has no active account with a verified email address, so no alert is emailed, and email does not count as a channel when deciding whether to announce a failing scheduler, until the owner verifies it. Changing the account email address needs a new verification.
  - `webhook` NotificationWebhookSettings, required
    - `url` string: Where alerts are posted. Absent when no webhook is configured.
    - `secret_configured` boolean, required: Whether a signing secret is set. The secret itself is returned only once.
    - `secret` string: The signing secret, starting with `whsec_`. Present only in the response that generated it: the update that first set `url`, or a rotation. Store it then; it cannot be read again.
  - `scheduler_failures` SchedulerFailureAlertPolicy, required
    - `notify_on` 'first_failure' | 'consecutive_failures', required: When a failing scheduler is announced: on its first failed run, or once `threshold` runs in a row have failed. Either way a streak is announced once, and a scheduler is announced failing at most once an hour.
    - `threshold` integer, required: How many runs in a row have to fail before a `consecutive_failures` alert. Ignored for `first_failure`.
    - `notify_on_recovery` boolean, required: Whether a successful run after an alerted failure streak sends a `scheduler.recovered` alert.
  - `updated_at` string, date-time: When the settings were last saved. Absent until the first save.

## Other responses

- `400`: The request body is invalid, for example a recipient other than the project owner's verified account email address.
- `403`: The request used a `read_only` project access token
- `404`: Project not found

## Changes

- **2026-10-26** `4b0676e06128`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/kong/apis/volcano-api/changes/projects/:id/notifications/put.md)

---

[API](https://skmtc.dev/kong/apis/volcano-api.md) - [All operations](https://skmtc.dev/kong/apis/volcano-api/llms.txt) - [OpenAPI document](https://skmtc.dev/kong/apis/volcano-api/revisions/84c4488f91e9?raw)
