Skip to content

Create or update a Slack or Teams notification destination

PUT
/v1/console/notify-destinations
curl --request PUT \
--url https://example.com/v1/console/notify-destinations \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{ "kind": "slack", "name": "example", "webhook_url": "example" }'

Creates or updates a Slack or Teams destination: the webhook URL is checked against the vendor’s hosts, sealed, stored in the deployment settings and opened without a restart. A blank URL keeps the stored one.

Media type application/json
object
kind
required
string
Allowed values: slack teams
name
required
string
webhook_url

The vendor’s incoming-webhook URL. Sealed on save and never returned. Blank keeps the stored value.

string format: password

OK

Media type application/json
object
kind
required
string
live
required
boolean
name
required
string
source
required
string
Allowed values: console file
webhook_host
string
Example
{
"source": "console"
}

Bad request

Media type application/json
object
error
required
object
code
required
string
message
required
string
module

With code module_not_enabled: the namespace of the module this node does not run.

string
Example generated
{
"error": {
"code": "example",
"message": "example",
"module": "example"
}
}

Unauthenticated

Media type application/json
object
error
required
object
code
required
string
message
required
string
module

With code module_not_enabled: the namespace of the module this node does not run.

string
Example generated
{
"error": {
"code": "example",
"message": "example",
"module": "example"
}
}

Forbidden

Media type application/json
object
error
required
object
code
required
string
message
required
string
module

With code module_not_enabled: the namespace of the module this node does not run.

string
Example generated
{
"error": {
"code": "example",
"message": "example",
"module": "example"
}
}

Not found

Media type application/json
object
error
required
object
code
required
string
message
required
string
module

With code module_not_enabled: the namespace of the module this node does not run.

string
Example generated
{
"error": {
"code": "example",
"message": "example",
"module": "example"
}
}

Conflict / setup required

Media type application/json
object
error
required
object
code
required
string
message
required
string
module

With code module_not_enabled: the namespace of the module this node does not run.

string
Example generated
{
"error": {
"code": "example",
"message": "example",
"module": "example"
}
}

Rate limited

Media type application/json
object
error
required
object
code
required
string
message
required
string
module

With code module_not_enabled: the namespace of the module this node does not run.

string
Example generated
{
"error": {
"code": "example",
"message": "example",
"module": "example"
}
}