latestOpenAPI 3.0.12026-08-21183382785.0 KB

24caa8eb809b

Journeys

Create the new journey under the bundle with copying the latest journey

Return the journey bundle information which contains the list of journey versions

post/entities/journey_bundles/{journeyBundleId}/journeys

Path parameters

journeyBundleIdinteger required

Journey Bundle ID

Request body

sourceIdstring

ID of the journey to be copied

Response

Returns the journey

Example response

{
  "data": {
    "attributes": {
      "journeyStages": [
        {
          "steps": {
            "uuid": {
              "waitUntilDaysOfTheWeek": [
                1,
                5,
                6
              ]
            }
          }
        }
      ]
    }
  },
  "included": [
    {
      "attributes": {
        "columns": [
          {
            "column": "alias_name",
            "source": {
              "column": "real_column_name"
            }
          }
        ],
        "scheduleType": "daily",
        "repeatSubFrequency": [
          1,
          5,
          6
        ],
        "syndicationBehavior": {
          "columns": [
            {
              "column": "alias_name",
              "source": {
                "column": "real_column_name"
              }
            }
          ],
          "behaviorTableName": "purchase_history",
          "joinRow": 3,
          "joinStrategy": "Last",
          "orderBy": [
            {
              "key": "purchased_at",
              "order": "descending"
            },
            {
              "key": "price",
              "order": "ascending"
            }
          ]
        },
        "syndicationBehaviors": [
          {
            "columns": [
              {
                "column": "alias_name",
                "source": {
                  "column": "real_column_name"
                }
              }
            ],
            "behaviorTableName": "purchase_history",
            "joinRow": 3,
            "joinStrategy": "Last",
            "orderBy": [
              {
                "key": "purchased_at",
                "order": "descending"
              },
              {
                "key": "price",
                "order": "ascending"
              }
            ]
          }
        ]
      }
    }
  ]
}