Updates a journey version. To call this resource, assign your API Integration the Automation | Interactions | Read scope.
JSON Parameters
Name
Type
Description
key
string
Required. The user-defined Key for the journey to update.
name
string
Required. The name of the journey.
workflowApiVersion
number
Required. The Journey Spec version to use for this journey. Possible values: 0.5, 1.0.
version
number
Required. The version of the journey.
id
string
The GUID (UUID) to be used while referencing this journey.
modifiedDate
string
This field must match the Database value. If it doesn’t match, the request is rejected. Your request doesn’t directly update this field, but the value you supply is used in mapping to the correct version of this journey.
description
string
A description of the journey.
goals
array
The goal for this particular journey. Expressed as an object of type ContactDecision from the Journey Spec.
triggers
array
The trigger for this particular journey. Expressed as an object of type ContactEvent from the Journey Spec.
activities
array
The activities which compose this particular journey. Expressed as objects of types supported by the Journey Spec
Usage
This request updates the journey version specified by the versionNumber Query Parameter.
This example represents the minimum required parameters to update the journey version, as prescribed by the Journey Spec. To understand how to leverage the full capability of updating journeys via the API, the Journey Spec documentation provides a comprehensive list of all available parameters.
These JSON parameters are always provided by Journey Builder and can never be updated:
id
lastPublishedDate
createdDate
modifiedDate, used in the request body, but only for mapping
definitionId
status
Although the modifiedDate may not be updated, you are required to pass current value that matches the database record. This prevents simultaneous writes that would overwrite other users’ changes.
1Host: https://YOUR_SUBDOMAIN.rest.marketingcloudapis.com2PUT /interaction/v1/interactions/3Content-Type: application/json4Authorization: Bearer YOUR_ACCESS_TOKEN56{7 "key": "ixn-created-via-the-api",8 "modifiedDate": "2014-08-06T08:11:12",9 "name": "API-Created journey updated",10 "version": 2,11 "description": "This is a journey created via the API created in this account",12 "workflowApiVersion": 1.013}
The response contains metadata about the journey.
1HTTP/1.1 2002{3 id: "unique-UUID-provided-by-SFMC"4 key: "ixn-created-via-the-api"5 name: "API-Created journey updated"6 lastPublishedDate: "0001-01-01T00:00:00"7 description: "This is a journey created via the API created in this account"8 version: 29 workflowApiVersion: 110 createdDate: "2014-08-06T23:27:08.15"11 modifiedDate: "2014-08-06T23:27:08.15"12 triggers: []13 goals: []14 status: "Draft"15 definitionId: "unique-UUID-provided-by-SFMC"16}
If an error occurs, the response provides an HTTP error code and a description of the error.
1HTTP/1.1 304 NO CHANGE2{3 message: "No change has been processed, supplied data matches that on the server."4 errorcode: 3045 documentation: ""6}