Update Rule
PATCH
/alerts/v1/update/{alert_id}
const url = 'http://localhost:3000/alerts/v1/update/example';const options = { method: 'PATCH', headers: {'Content-Type': 'application/json'}, body: '{"description":"This alert rule is designed to promptly notify you when one or more servers in your infrastructure become unresponsive or inaccessible.","labels":{"severity":"warning"}}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request PATCH \ --url http://localhost:3000/alerts/v1/update/example \ --header 'Content-Type: application/json' \ --data '{ "description": "This alert rule is designed to promptly notify you when one or more servers in your infrastructure become unresponsive or inaccessible.", "labels": { "severity": "warning" } }'This URL will provide access to users to edit any properties in the Alert rule and save the changes.
Parameters
Section titled “ Parameters ”Path Parameters
Section titled “Path Parameters ” alert_id
required
string
Unique identifier for the alert
Request Body
Section titled “Request Body ” Media type application/json
object
Example
{ "description": "This alert rule is designed to promptly notify you when one or more servers in your infrastructure become unresponsive or inaccessible.", "labels": { "severity": "warning" }}Responses
Section titled “ Responses ”Successful response
Media type application/json