Method: Teleflow::Api::NotificationTemplates#create_notification_template

Defined in:
lib/teleflow/api/notification_templates.rb

#create_notification_template(body) ⇒ Hash, number

Creates a new notification template.

@bodyparams:

Parameters:

  • `name` (String)
  • `notificationGroupId` (String)
  • `tags` (Array(optional))
  • `description` (String(optional))
  • `steps` (Array)
  • `active` (Boolean(optional))
  • `draft` (Boolean(optional))
  • `critical` (Boolean(optional))
  • `preferenceSettings` (Hash(optional))

Returns:

  • (Hash)

    Notification template entity.

  • (number)

    status - The status code. Returns 201 if the notification template has been successfully created.



40
41
42
# File 'lib/teleflow/api/notification_templates.rb', line 40

def create_notification_template(body)
  post("/notification-templates", body: body)
end