« Back to Documentation Overview

templateUpdate – v1.3

 templateUpdate(string apikey, int id, array values)

Replace the content of a user template, NOT campaign content.

Section
Template Related
Parameters
apikey a valid API Key for your user account. Get by visiting your API dashboard
id the id of the user template to update
values the values to updates - while both are optional, at least one should be provided. Both can be updated at the same time.
stringnameoptional - the name for the template - names must be unique and a max of 50 bytes
stringhtmloptional - a string specifying the entire template to be created. This is NOT campaign content. They are intended to utilize our template language.
Returns
boolean true if the template was updated, otherwise an error will be thrown