Skip to content

Update Channel

PATCH
/api/notification-channels/{channel_id}
curl --request PATCH \
--url https://kelpie.example.com/api/notification-channels/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0 \
--header 'Content-Type: application/json' \
--data '{ "name": "example", "enabled": true, "url": "example", "signing_secret": "example", "recipients": "example", "subscriptions": [ { "event": "example", "stack_id": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0" } ] }'
channel_id
required
Channel Id
string format: uuid
Media typeapplication/json
ChannelPatch
object
name
Name
Any of:
string
>= 1 characters <= 100 characters
enabled
Enabled
Any of:
boolean
url
Url
Any of:
string
<= 2000 characters /^https?://\S+$/
signing_secret
Signing Secret
Any of:
string
<= 500 characters
recipients
Recipients
Any of:
string
<= 1000 characters
subscriptions
Subscriptions
Any of:
Array<object>
<= 200 items
SubscriptionIn
object
event
required
Event
string
>= 1 characters <= 40 characters
stack_id
Stack Id
Any of:
string format: uuid

Example generated

{
"name": "example",
"enabled": true,
"url": "example",
"signing_secret": "example",
"recipients": "example",
"subscriptions": [
{
"event": "example",
"stack_id": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0"
}
]
}

Successful Response

Media typeapplication/json
ChannelOut
object
id
required
Id
string format: uuid
name
required
Name
string
kind
required
ChannelKind
string
Allowed values: webhook slack discord email
enabled
required
Enabled
boolean
has_url
required
Has Url
boolean
has_signing_secret
required
Has Signing Secret
boolean
recipients
required
Recipients
Any of:
string
subscriptions
required
Subscriptions
Array<object>
SubscriptionOut
object
event
required
Event
string
>= 1 characters <= 40 characters
stack_id
Stack Id
Any of:
string format: uuid
stack_name
required
Stack Name
Any of:
string
last_sent_at
required
Last Sent At
Any of:
string format: date-time
last_error
required
Last Error
Any of:
string

Example

{
"kind": "webhook"
}

Validation Error

Media typeapplication/json
HTTPValidationError
object
detail
Detail
Array<object>
ValidationError
object
loc
required
Location
Array
msg
required
Message
string
type
required
Error Type
string
input
Input
ctx
Context
object

Example generated

{
"detail": [
{
"loc": [
"example"
],
"msg": "example",
"type": "example",
"input": "example",
"ctx": {}
}
]
}