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

# Update a Slack notification provider

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

## Path parameters

- `id` integer, required

## Request body

- UpdateSlackProviderRequest
  - `config` SlackConfig, required: Request-side Slack config. Deliberately not `Serialize`: the webhook URL is a `SecretString`, which would serialize as `"***"`. Use [`SlackConfig::into_stored_value`] to build the value that gets encrypted.
    - `channel` string, nullable
    - `webhook_url` string, password, required: A credential. Write-only: it is never returned, and the AI assistant supplies it through a secret slot instead of typing it into the conversation.
  - `enabled` boolean, nullable
  - `name` string, nullable

## Response `200`

Successfully updated Slack 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/webhook_url` request property format changed from no format to `password`
- **2026-10-23** `24af93ff5379`: 1 info
  - the `config/webhook_url` request property format was generalized from `password` to no format
- **2026-10-22** `842d42ed4659`: 1 breaking
  - the `config/webhook_url` request property format changed from no format to `password`
- **2026-10-22** `1a12a50b75ee`: 1 info
  - the `config/webhook_url` request property format was generalized from `password` to no format

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