Templates

Creates a new template.

Changed on
post/templates

Request

Request body

namestring required
typestring
logoUrlstring nullable
headerContentstring nullable

Legacy field - use Sections instead for new templates.

footerContentstring nullable

Legacy field - use Sections instead for new templates.

formatstring nullable
emailSubjectstring nullable
emailBodystring nullable
smsBodystring nullable
categorystring nullable

Client-message category key (type "client-message" only, ITE-1170).

channelstring nullable

Client-message channel: "email", "sms" or "both" (type "client-message" only).

isDefaultboolean

Response

OK

idstring
namestring
typestring
logoUrlstring nullable
headerContentstring nullable

Legacy field - kept for backward compatibility.

footerContentstring nullable

Legacy field - kept for backward compatibility.

formatstring nullable
emailSubjectstring nullable
emailBodystring nullable
smsBodystring nullable
categorystring nullable

Client-message category key (type "client-message" only, ITE-1170).

channelstring nullable

Client-message channel: "email", "sms" or "both" (type "client-message" only).

isDefaultboolean
archivedAtstring date-time nullable

When the template was archived; null while active.

createdByIdstring nullable
createdAtstring date-time
updatedAtstring date-time
unknownVariablesstring[] nullable

Set on create/update responses only: {{tokens}} in the saved sections that the render pipeline will not substitute for this template's type (typos or variables from another template type). Null when everything is known or validation was not run.

Changes

    • info

      added the new optional request property (media type: application/json)

    • info

      added the new optional request property (media type: text/json)

    • info

      added the new optional request property (media type: application/*+json)

    • info

      added the new optional request property (media type: application/json)

    • info

      added the new optional request property (media type: text/json)

    • info

      added the new optional request property (media type: application/*+json)

    • info

      added the optional property to the response with the status (media type: text/plain)

    • info

      added the optional property to the response with the status (media type: application/json)

    • info

      added the optional property to the response with the status (media type: text/json)

    • info

      added the optional property to the response with the status (media type: text/plain)

    • info

      added the optional property to the response with the status (media type: application/json)

    • info

      added the optional property to the response with the status (media type: text/json)

    • info

      added the optional property to the response with the status (media type: text/plain)

    • info

      added the optional property to the response with the status (media type: application/json)

    • info

      added the optional property to the response with the status (media type: text/json)