Create a Notification Template for an Organization
post
/api/v2/organizations/{id}/notification_templates/
Make a POST request to this resource with the following notification template fields to create a new notification template associated with this organization.
name: Name of this notification template. (string, required)-
description: Optional description of this notification template. (string, default="") -
notification_type: (choice, required)email: Emailgrafana: Grafanairc: IRCmattermost: Mattermostpagerduty: Pagerdutyrocketchat: Rocket.Chatslack: Slacktwilio: Twiliowebhook: Webhook
notification_configuration: (json, default={})messages: Optional custom messages for notification template. (json, default={'started': None, 'success': None, 'error': None, 'workflow_approval': None})
Remove Organization Notification Templates:
Make a POST request to this resource with id and disassociate fields to
delete the associated notification template.
{
"id": 123,
"disassociate": true
}
Request
Supported Media Types
- application/json
Path Parameters
Root Schema : schema
Type:
Show Source
object-
description(optional):
string
-
messages(optional):
string
Optional custom messages for notification template.
-
name:
string
-
notification_configuration(optional):
string
-
notification_type:
string
-
organization:
integer