Create a new Template

POST /content/api/v2/templates

Method Details

HTTP Methods:

POST

Content Type:

application/json

Response Format:

json

Requires Authentication?

Yes

Rate Limited?

Yes

Headers

User-Agent

Products:

Marketing

Create a new coded template object in Design Manager.

Required Parameters How to use Description
OAuth Access Token or API Key Authorization: Bearer {token} header
or hapikey={key} query parameter.
Used to authenticate the request. Please see this page for more details about authentication.
Additional Parameters Description
category_id This parameter category type:

  • 0 - Unmapped
  • 1 - Landing Pages
  • 2 - Email
  • 3 - Blog Post
  • 4 - Site Page
folder The name of the folder to save the template in Design Manager.
template_type This parameter accepts a numeric value and sets the type of template that is created. The following numbers correspond to specific template types:

  • 2 - Email template
  • 4 - Page template
  • 6 - Blog template
  • 11 - Error template
  • 12 - Subscription preferences template
  • 13 - Backup unsubscribe page template
  • 14 - Subscriptions update confirmation template
  • 19 - Password prompt page template
path The Design Manager path to the directory that contains the file being created
source The source code of the file.