Journeys

Replace a journey-scoped notification template

Changed on

Replaces the draft content of one journey's notification template. Publish it before send nodes referencing it render the change.

put/journeys/{templateId}/templates/{notificationId}

Request

Path parameters

templateIdstring required

Journey id

notificationIdstring required

Notification template id

Request body

statestring

Example request

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

Response

Updated notification template

namestring required
tagsstring[] required
idstring required
state'DRAFT' | 'PUBLISHED' required
createdinteger required
creatorstring required
updatedinteger
updaterstring

Example response

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

Changes

    • breaking

      removed subschema #1 subschema #3 subschema #7 from the /// request property oneOf list

    • breaking

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

    • info

      added subschema #1 subschema #3 subschema #7 to the /// request property oneOf list

    • info

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

    • breaking

      removed subschema #4 subschema #5 from the /// request property oneOf list

    • breaking

      added subschema #4 subschema #5 to the // response property oneOf list for the response status

    • info

      added subschema #4 subschema #5 to the /// request property oneOf list

    • info

      removed subschema #4 subschema #5 from the // response property oneOf list for the response status