patch /v1/notifications/channels/{id}
Update channel (url/events/status/config/secrets; channel_type and id are immutable)
Secrets merge by key. An empty-string value keeps the stored value, a non-empty value replaces it, and an omitted key is removed. Changing url reroutes unfinished deliveries to the new address; delivered rows keep the historical address.
Parameters
| Name | In | Type | Description |
|---|
id * |
path |
string |
channel id |
Request body
| Field | Type | Description |
|---|
name |
string (len≥1 len≤80 /^[^\r\n]*$/) | null |
|
url |
string uri (/^https?:///) |
|
events |
enum("crawl.started", "crawl.completed", "crawl.failed", "monitor.page", "monitor.check.completed")[] |
|
status |
enum("active", "disabled") |
|
config |
object |
|
secrets |
object |
|
Full request schema
{
"$ref": "#/components/schemas/ChannelPatch"
}
Responses
| Status | Description | Body |
|---|
200 | OK | application/json — object |