Create or Update Notification Template Overlay

PUT {{baseUrl}}/services/:serviceID/overlays/custom-content/:alertSource

This endpoint is used to create or update the custom content template overlay for a given alert source of your service.

Requires access_token as a Bearer {{token}} in the Authorization header with read scope.

Request Body

{"overlay_template_type"=>"go", "message_overlay"=>{"template"=>"{{.labels.alertname}}-{{.labels.deployment}}"}, "description_overlay"=>{"template"=>"new desc 123 template hehe"}}

RESPONSES

status: OK

{"data":{"created_at":"2023-06-15T03:02:33.376303+05:30","updated_at":"2023-06-15T03:02:33.376303+05:30","deleted_at":null,"org_id":"6163f3d7f839f32753ff409b","service_id":"6163f3d7d7daa488535e7c28","alert_source_version":"v1","alert_source_shortname":"prometheus","overlay_template_type":"go","overlay":{"dedup_key_overlay":{"template":"{{.labels.alertname}}-{{.labels.deployment}}","duration":"0001-01-01T00:00:00Z"},"message":null,"description":null}}}