Update an alert rule
Changed onUpdate an alert rule by ID.
Requires the alert_rules:write permission.
Request
- Base URLhttps://api.phare.io
- AuthHTTP bearer
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Path parameters
ID of the alert rule to update
Headers
A project header is required when using an organization-scoped API key.
A project header is required when using an organization-scoped API key.
Request body
Example request
{
"scope": "organization",
"integration_id": 1,
"rate_limit": 5,
"event_settings": {
"type": "all"
},
"integration_settings": {
"priority": "default"
}
}Response
Success, alert rule updated
Example response
{
"id": 1,
"project_id": 1,
"integration_id": 1,
"rate_limit": 5,
"event_settings": {
"type": "all"
},
"integration_settings": {
"priority": "default"
}
}Changes
- info
the endpoint scheme security
BearerAuthwas added to the API
- info
- breaking
the request property
/became not nullable - breaking
the request property
/became not nullable - breaking
the request property
//became not nullable - breaking
the request property
//became not nullable - breaking
the request property
//became required - warning
added the new
uptime.maintenance_window.cancelledenum value to theresponse property for the response status - warning
added the new
uptime.maintenance_window.completedenum value to theresponse property for the response status - warning
added the new
uptime.maintenance_window.in_progressenum value to theresponse property for the response status - info
added the new
uptime.maintenance_window.cancelledenum value to the request property - info
added the new
uptime.maintenance_window.completedenum value to the request property - info
added the new
uptime.maintenance_window.in_progressenum value to the request property - info
the response property
//became required for the status
- breaking