Alerting & Response/Alert Templates
POSTAlertingSince 1.0SynchronousAuth Required
CreateAlertTemplate
Create a new message template for alert notifications
Execution Availability
Try It Out
Submit a mock request using the current auth context and example-driven inputs.
Request Inputs
Body Fields
nameStringRequiredHuman-readable template name
Example: Custom Email Template
formatStringRequiredTemplate format: markdown, html, json, or plain_text
Example: markdown
contentStringRequiredTemplate content with variable placeholders
Example: # Alert: {{.AlertName}}
Responses
Endpoint
POST/api/v1/alerting/templates
/api/v1/alerting/templates
Request Example
curl -X POST '{host}/api/v1/alerting/templates' -H 'Authorization: Bearer {token}' -H 'Content-Type: application/json' -d '{"name":"Custom Email Template","format":"markdown","content":"# Alert: {{.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.
