Updates the end time and/or comment of an existing silence. Preserves the original
matchers and start time. Ownership is verified via the system_key matcher.
Requires manage:systems permission.
PUT
/systems/{id}/alerts/silences/{silence_id}
curl \
--request PUT 'https://api.your-domain.com/api/systems/sys_123456789/alerts/silences/4e6f0c30-c383-4e22-9443-0d7b6a8bd40b' \
--header "Authorization: Bearer $ACCESS_TOKEN" \
--header "Content-Type: application/json" \
--data '{"comment":"extended for maintenance window","end_at":"2024-01-01T04:00:00Z"}'
Request examples
{
"comment": "extended for maintenance window",
"end_at": "2024-01-01T04:00:00Z"
}
Response examples (200)
{
"code": 200,
"message": "silence updated successfully",
"data": {
"silence_id": "4e6f0c30-c383-4e22-9443-0d7b6a8bd40b"
}
}
Response examples (400)
{
"code": 400,
"message": "validation failed",
"data": {
"type": "validation_error",
"errors": [
{
"key": "username",
"message": "required",
"value": "string"
}
]
}
}
Response examples (401)
{
"code": 401,
"message": "invalid token",
"data": {}
}
Response examples (403)
{
"code": 403,
"message": "insufficient permissions",
"data": {}
}
Response examples (404)
{
"code": 400,
"message": "validation failed",
"data": {
"type": "validation_error",
"errors": [
{
"key": "username",
"message": "required",
"value": "string"
}
]
}
}