Skip to main content

Update Template

PUT 

/template/:templateId

Replaces the content of an existing saved template​

This is a full replace of name, subject, previewText, html and css: a field left out of the request is cleared (css becomes empty). The editor type and tags set in the app are kept.

Request​

Path Parameters

    templateId uuidrequired

    ID of the template to update

Body

required
    name stringrequired

    Possible values: <= 256 characters

    Template name, unique within the account

    subject string

    Possible values: <= 150 characters

    Default subject for campaigns created from this template

    previewText string

    Possible values: <= 150 characters

    Default preview text (preheader) for campaigns created from this template

    html stringrequired

    Full HTML of the email

    css string

    Optional CSS kept alongside the HTML. Defaults to empty.

Responses​

successful operation

Schema
    id uuid
    name string
    subject stringnullable
    previewText stringnullable
    html string
    css string
    editorType string

    Possible values: [DRAG_AND_DROP, HTML]

    Editor the template opens in. Always HTML for templates created through the API.

    createdAt int64

    Creation time in epoch milliseconds

    updatedAt int64

    Last update time in epoch milliseconds

Loading...