Method: Teleflow::Api::NotificationTemplates#update_notification_template

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

#update_notification_template(template_id, body) ⇒ Hash, number

Updates new notification template.

@pathparams: @bodyparams:

Parameters:

  • `template_id` (String)

    The ID of the notification template to update.

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

Returns:

  • (Hash)

    Updated notification template entity.

  • (number)

    status - The status code. Returns 200 if the notification template has been successfully updated.



62
63
64
# File 'lib/teleflow/api/notification_templates.rb', line 62

def update_notification_template(template_id, body)
  put("/notification-templates/#{template_id}", body: body)
end