Create or update alertmanager receiver API Reference
PUT
/tenants/{tenant}/alertmanager/receivers/{name}
const url = 'https://api.kupe.cloud/api/v1/tenants/acme/alertmanager/receivers/slack';const options = { method: 'PUT', headers: {Authorization: '<Authorization>', 'Content-Type': 'application/json'}, body: '{"email_configs":[{"additionalProperty":"example"}],"name":"slack","slack_configs":[{"additionalProperty":"example"}],"webhook_configs":[{"additionalProperty":"example"}]}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request PUT \ --url https://api.kupe.cloud/api/v1/tenants/acme/alertmanager/receivers/slack \ --header 'Authorization: <Authorization>' \ --header 'Content-Type: application/json' \ --data '{ "email_configs": [ { "additionalProperty": "example" } ], "name": "slack", "slack_configs": [ { "additionalProperty": "example" } ], "webhook_configs": [ { "additionalProperty": "example" } ] }'Idempotent upsert. The path name is authoritative; the body’s name field is overridden.
The receiver shape is the standard Alertmanager schema (slack_configs, email_configs, etc.).
Authorizations
Section titled “ Authorizations ”Parameters
Section titled “ Parameters ”Path Parameters
Section titled “ Path Parameters ” tenant
required
string
Tenant name
name
required
string
Receiver name
Header Parameters
Section titled “ Header Parameters ” If-Match
string
Wrapper ETag for optimistic locking
Request Body
Section titled “ Request Body ”Receiver configuration
Media type application/json
object
email_configs
Array<object>
object
key
additional properties
name
string
Example
slack slack_configs
Array<object>
object
key
additional properties
webhook_configs
Array<object>
object
key
additional properties
Responses
Section titled “ Responses ”Receiver after upsert
Media type application/json
object
email_configs
Array<object>
object
key
additional properties
name
string
slack_configs
Array<object>
object
key
additional properties
webhook_configs
Array<object>
object
key
additional properties
Example
{ "name": "slack"}Headers
Section titled “ Headers ” ETag
string
New wrapper ETag
Validation error
Media type application/json
object
code
string
error
string
field
string
message
string
severity
string
Example generated
{ "code": "example", "error": "example", "field": "example", "message": "example", "severity": "example"}ETag mismatch
Media type application/json
object
code
string
error
string
field
string
message
string
severity
string
Example generated
{ "code": "example", "error": "example", "field": "example", "message": "example", "severity": "example"}