Modify Silence Request
PATCH
/alerts/v1/silence/update/{alert_id}
const url = 'http://localhost:3000/alerts/v1/silence/update/example';const options = { method: 'PATCH', headers: {'Content-Type': 'application/json'}, body: '{"startDate":"2023-08-09T10:50:59Z","endDate":"2023-08-10T10:30:59Z"}'};
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/silence/update/example \ --header 'Content-Type: application/json' \ --data '{ "startDate": "2023-08-09T10:50:59Z", "endDate": "2023-08-10T10:30:59Z" }'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
{ "startDate": "2023-08-09T10:50:59Z", "endDate": "2023-08-10T10:30:59Z"}Responses
Section titled “ Responses ”Successful response
Media type application/json