Create a Notification Template

post

/api/v2/notification_templates/

Make a POST request to this resource with the following notification template fields to create a new notification template:

  • name: Name of this notification template. (string, required)
  • description: Optional description of this notification template. (string, default="")
  • organization: (id, required)
  • notification_type: (choice, required)
    • email: Email
    • grafana: Grafana
    • irc: IRC
    • mattermost: Mattermost
    • pagerduty: Pagerduty
    • rocketchat: Rocket.Chat
    • slack: Slack
    • twilio: Twilio
    • webhook: Webhook
  • notification_configuration: (json, default={})
  • messages: Optional custom messages for notification template. (json, default={'started': None, 'success': None, 'error': None, 'workflow_approval': None})

Request

Supported Media Types
Body ()
Root Schema : NotificationTemplate
Type: object
Show Source
Nested Schema : Messages
Type: object
Title: Messages
Optional custom messages for notification template.
Default Value: { }
Nested Schema : Notification configuration
Type: object
Title: Notification configuration
Back to Top

Response

Supported Media Types

201 Response

Body ()
Root Schema : NotificationTemplate
Type: object
Show Source
Nested Schema : Messages
Type: object
Title: Messages
Optional custom messages for notification template.
Default Value: { }
Nested Schema : Notification configuration
Type: object
Title: Notification configuration
Back to Top