Alerts
/Update an alert by ID
Update an alert by ID
https:/api.livesession.io/v1/alerts/{id}
Update alert by ID
Scopes
Required scopes:
alerts:write
Path parameters
id
string
Required
Unique identifier of the alert to update
Request body
name
string
New name for the alertevents
array of object
Updated list of events that will trigger the alertkind
integer
Kind of event, more info [here](/docs/api/rest/EventKind)value
string
Value or threshold that triggers the alert
provider
enum
Updated notification provider for the alertslack
string
webhooks
string
slack_channel_id
string
Updated Slack channel ID for notificationswebhook_id
string
Updated webhook ID for notifications
Response
OK
alert_id
string
Unique identifier for the alertname
string
Name of the alertevents
array of object
List of events that trigger the alertkind
integer
Kind of event, more info [here](/docs/api/rest/EventKind)value
string
Value or threshold that triggers the alert
provider
enum
Notification provider for the alertslack
string
webhooks
string
slack_channel_id
string
Slack channel ID for notificationswebhook_id
string
Webhook ID for notificationsenabled
boolean
Whether the alert is currently activecreation_date
string
ISO 8601 timestamp when the alert was created
Example request
curl --request PUT \ --url https://api.livesession.io/v1/alerts/string \ --header 'accept: application/json' \ --header 'content-type: application/json' \ --data ' { "name": "string", "events": [ { "kind": 0, "value": "string" } ], "provider": "slack", "slack_channel_id": "string", "webhook_id": "string" } '
Example response
{ "alert_id": "string", "name": "string", "events": [ { "kind": 0, "value": "string" } ], "provider": "slack", "slack_channel_id": "string", "webhook_id": "string", "enabled": true, "creation_date": "string" }
Built with
Show your support! Star us on GitHub ⭐️