---
title: "Update a Webhook notification provider"
method: PUT
path: "/notification-providers/webhook/{id}"
tags: ["Notification Providers"]
---

# Update a Webhook notification provider

`PUT /notification-providers/webhook/{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/webhook/{id}`
- Auth: HTTP bearer

## Path parameters

- `id` integer, required

## Request body

- UpdateWebhookProviderRequest
  - `config` WebhookConfig, required: Configuration for a generic webhook notification provider Request-side config. Not `Serialize`: every header value is a `SecretString` (reads mask them all, because they are where a webhook's credential goes), so use [`WebhookConfig::into_stored_value`].
    - `headers` object: Custom headers to include in the request (e.g., for authentication tokens). Every value is treated as a credential: write-only, masked on read, and taken by the AI assistant through a secret slot.
    - `method` string: HTTP method to use (POST, PUT, PATCH). Defaults to POST.
    - `timeout_secs` integer: Request timeout in seconds. Defaults to 30.
    - `url` string, required: The URL to send webhook requests to
  - `enabled` boolean, nullable
  - `name` string, nullable

## Response `200`

Successfully updated Webhook 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-11-18** `4638641fb9a2`: 1 breaking
  - the `config/headers/additionalProperties/` request property format changed from no format to `password`
- **2026-09-07** `11b114eb9283`: 1 info
  - added the non-success response with the status `400`
- **2026-09-07** `f7404eb7ac98`: 1 info
  - removed the non-success response with the status `400`
- **2026-08-27** `964de88ec3c5`: 1 info
  - added the non-success response with the status `400`

[Operation history](https://skmtc.dev/gotempsh/apis/temps/changes/notification-providers/webhook/: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)
