Templates

Duplicate Notification Template

Changed on

Copies a notification template within the same workspace and environment, appending " COPY" to the title. The copy is standalone and independently editable.

post/notifications/{id}/duplicate

Request

Path parameters

idstring required

Template ID (nt_ prefix).

Response

The newly created template copy.

namestring required

Display name for the template.

tagsstring[] required

Tags for categorization. Send empty array for none.

idstring required

The template ID.

state'DRAFT' | 'PUBLISHED' required

The template state. Always uppercase.

createdinteger required

Epoch milliseconds when the template was created.

creatorstring required

User ID of the creator.

updatedinteger

Epoch milliseconds of last update.

updaterstring

User ID of the last updater.

Example response

{
  "content": {
    "elements": [
      {
        "channel": "email"
      }
    ]
  }
}

Changes

    • breaking

      added subschema #1 subschema #3 subschema #7 to the /// response property oneOf list for the response status

    • info

      added subschema #2: NotificationTemplateResponseFields to the response body allOf list for the response status

    • info

      removed subschema #2 from the response body allOf list for the response status

    • info

      removed subschema #1 subschema #3 subschema #7 from the /// response property oneOf list for the response status

    • info

      api tag Templates added

    • info

      api tag Notification Templates removed