Method: Vonage::Verify2::Templates#update

Defined in:
lib/vonage/verify2/templates.rb

#update(template_id:, **params) ⇒ Response

Update an existing template.

Examples:

client.verify2.templates.update(template_id: '8f35a1a7-eb2f-4552-8fdf-fffdaee41bc9', name: 'my-updated-template')

Parameters:

  • :template_id. (required, String)

    The ID of the template to be updated

  • :name. (optional, String)

    The name of the template. The following characters are permitted: [A-Z a-z 0-9 _ -]

  • :is_default. (optional, Boolean)

    Whether the template is the default template for a specific locale/channel combination

Returns:

See Also:



68
69
70
# File 'lib/vonage/verify2/templates.rb', line 68

def update(template_id:, **params)
  request('/v2/verify/templates/' + template_id, params: params, type: Patch)
end