---
title: "Update a Cloudflare Email Sending notification provider"
method: PUT
path: "/notification-providers/cloudflare/{id}"
tags: ["Notification Providers"]
---

# Update a Cloudflare Email Sending notification provider

`PUT /notification-providers/cloudflare/{id}`

## Request

- Base URL: `/api` (relative, and the document was published on a file host, not at the API’s origin)
- URL: `/api/notification-providers/cloudflare/{id}`
- Auth: HTTP bearer

## Path parameters

- `id` integer, required

## Request body

- UpdateCloudflareProviderRequest
  - `config` CloudflareConfig, required: Configuration for a Cloudflare Email Sending notification provider. Notifications are delivered through Cloudflare's transactional Email Sending API. Only the account, token, sender and recipients are configured here — subject and body are derived from each notification. Request-side config. Not `Serialize`: `api_token` is a `SecretString`; use [`CloudflareConfig::into_stored_value`].
    - `account_id` string, required: Cloudflare account id that owns the Email Sending configuration.
    - `api_token` string, password, required: Cloudflare API token with the Email Sending permission. Encrypted at rest and masked in normal API responses.
    - `from_address` string, required: Verified sender address (must belong to a domain enabled for Cloudflare Email Sending).
    - `from_name` string, nullable: Optional human-friendly sender name shown in the recipient's inbox.
    - `to_addresses` string[], required: Recipients that should receive the notification.
  - `enabled` boolean, nullable
  - `name` string, nullable

## Response `200`

Successfully updated Cloudflare provider

- NotificationProviderResponse
  - `config` unknown, required
  - `created_at` string, date-time, required
  - `enabled` boolean, required
  - `id` integer, required
  - `name` string, required
  - `provider_type` string, required
  - `updated_at` string, date-time, required

## Other responses

- `400`: Invalid minimum severity or provider configuration
- `404`: Provider not found
- `500`: Internal server error

## Changes

- **2026-11-26** `e1864d950604`: 2 breaking
  - the `created_at` response's property type changed from `integer` to `string`, and format from `int64` to `date-time` for status `200`
  - the `updated_at` response's property type changed from `integer` to `string`, and format from `int64` to `date-time` for status `200`
- **2026-10-23** `7d41b820a372`: 1 breaking
  - the `config/api_token` request property format changed from no format to `password`
- **2026-10-23** `24af93ff5379`: 1 info
  - the `config/api_token` request property format was generalized from `password` to no format
- **2026-10-22** `842d42ed4659`: 1 breaking
  - the `config/api_token` request property format changed from no format to `password`
- **2026-10-22** `1a12a50b75ee`: 1 info
  - the `config/api_token` request property format was generalized from `password` to no format

[Operation history](https://skmtc.dev/gotempsh/apis/temps/changes/notification-providers/cloudflare/:id/put.md)

---

[API](https://skmtc.dev/gotempsh/apis/temps.md) - [All operations](https://skmtc.dev/gotempsh/apis/temps/llms.txt) - [OpenAPI document](https://skmtc.dev/gotempsh/apis/temps/revisions/3b040526eb43?raw)
