Alerting & Response/Alert Templates
PUTAlertingSince 1.0SynchronousAuth Required
UpdateAlertTemplate
Update a message template name and content
Execution Availability
Try It Out
Submit a mock request using the current auth context and example-driven inputs.
Path Parameters
Request Inputs
Path Parameters
templateIdStringRequiredTemplate identifier to update
Body Fields
nameStringRequiredNew template name
Example: Updated Template
contentStringRequiredNew template content
Example: # Updated: {{.AlertName}}
Responses
Endpoint
PUT/api/v1/alerting/templates/{templateId}
/api/v1/alerting/templates/{templateId}
Request Example
curl -X PUT '{host}/api/v1/alerting/templates/{templateId}' -H 'Authorization: Bearer {token}' -H 'Content-Type: application/json' -d '{"name":"Updated Template","content":"# Updated: {{.AlertName}}"}'
Response Example
200{
"uuid": "tmpl-001",
"name": "Default Email Template",
"format": "markdown",
"content": "# Alert: {{.AlertName}}",
"source": "builtin",
"createDate": "example",
"lastOpDate": "example"
}Change History
This API has no change history records yet.
