Update Notification Template
Updates an existing notification template.
NOTE: Limit for selected Resource Kinds count is 30.
NOTE: Limit for selected Stats count is 30.
Notification template as payload
Show optional properties
{
"pluginTypeId": "string",
"name": "string"
}
"{\n \"templateId\" : \"569848bd-485e-449d-a95d-9ce2580c6a43\",\n \"pluginTypeId\" : \"WebhookPlugin\",\n \"name\" : \"Template\",\n \"description\" : \"WebhookPlugin Description\",\n \"contentConfigs\" : [ {\n \"baseResourceKindKeyStats\" : {\n \"resourceKindKey\" : {\n \"resourceKind\" : \"Resource kind\",\n \"adapterKind\" : \"Adapter kind\"\n },\n \"stats\" : [ \"Property key\", \"Stat key\" ]\n },\n \"ancestorResourceKindKeys\" : [ {\n \"resourceKindKey\" : {\n \"resourceKind\" : \"Ancestor Resource kind\",\n \"adapterKind\" : \"Ancestor Adapter kind\"\n },\n \"stats\" : [ \"Ancestor Stat Key\", \"Ancestor Property Key\" ]\n } ],\n \"descendantResourceKindKeys\" : [ {\n \"resourceKindKey\" : {\n \"resourceKind\" : \"Descendant Resource kind\",\n \"adapterKind\" : \"Descendant Adapter kind\"\n },\n \"stats\" : [ \"Descendant Property Key\", \"Descendant Stat Key\" ]\n } ]\n } ],\n \"formattingTemplate\" : {\n \"type\" : \"WEBHOOK_TEMPLATE\",\n \"newAlertTemplate\" : {\n \"endpoint\" : \"/endpoint\",\n \"headers\" : [ {\n \"key\" : \"Content-type\",\n \"value\" : \"application/json\"\n }, {\n \"key\" : \"Header Key\",\n \"value\" : \"Header Value\"\n } ],\n \"method\" : \"POST\",\n \"payload\" : \"{\\\"startDate\\\":\\\"${CREATE_TIME}\\\"}\"\n }\n },\n \"templateType\" : \"ALERT\"\n}"
Notification template identifier
Notification template type
Name of the Notification template
Description of the Notification template
Latest user UUID which modified the template
Last time the template is modified
A set of template content configs
Formatting template
Collection of template properties. Applicable only for WebhookPlugin and EmailPlugin.
Attached rule count of the Notification template
Indicates whether the template is editable or not
Notification Template Type
The updated notification template
"{\n \"templateId\" : \"eea015fa-4c1e-4a2c-9468-43fa23df220c\",\n \"pluginTypeId\" : \"WebhookPlugin\",\n \"name\" : \"Template\",\n \"description\" : \"WebhookPlugin Description\",\n \"contentConfigs\" : [ {\n \"baseResourceKindKeyStats\" : {\n \"resourceKindKey\" : {\n \"resourceKind\" : \"Resource kind\",\n \"adapterKind\" : \"Adapter kind\"\n },\n \"stats\" : [ \"Property key\", \"Stat key\" ]\n },\n \"ancestorResourceKindKeys\" : [ {\n \"resourceKindKey\" : {\n \"resourceKind\" : \"Ancestor Resource kind\",\n \"adapterKind\" : \"Ancestor Adapter kind\"\n },\n \"stats\" : [ \"Ancestor Stat Key\", \"Ancestor Property Key\" ]\n } ],\n \"descendantResourceKindKeys\" : [ {\n \"resourceKindKey\" : {\n \"resourceKind\" : \"Descendant Resource kind\",\n \"adapterKind\" : \"Descendant Adapter kind\"\n },\n \"stats\" : [ \"Descendant Property Key\", \"Descendant Stat Key\" ]\n } ]\n } ],\n \"formattingTemplate\" : {\n \"type\" : \"WEBHOOK_TEMPLATE\",\n \"newAlertTemplate\" : {\n \"endpoint\" : \"/endpoint\",\n \"headers\" : [ {\n \"key\" : \"Content-type\",\n \"value\" : \"application/json\"\n }, {\n \"key\" : \"Header Key\",\n \"value\" : \"Header Value\"\n } ],\n \"method\" : \"POST\",\n \"payload\" : \"{\\\"startDate\\\":\\\"${CREATE_TIME}\\\"}\"\n }\n },\n \"templateType\" : \"ALERT\"\n}"
Notification template identifier
Notification template type
Name of the Notification template
Description of the Notification template
Latest user UUID which modified the template
Last time the template is modified
A set of template content configs
Formatting template
Collection of template properties. Applicable only for WebhookPlugin and EmailPlugin.
Attached rule count of the Notification template
Indicates whether the template is editable or not
Notification Template Type
curl -X PUT -H 'Authorization: <value>' -H 'Content-Type: application/json' -d '{"name:"string","pluginTypeId:"string"}' https://{api_host}/suite-api/api/notifications/templates