Skip to content

Create a duplicate of the specified journey

Request

Create a duplicate of the specified journey

Security
TdApikeyAuth
Bodyapplication/vnd.treasuredata.v1+jsonrequired

parameters to duplicate a journey

idstring[1-9][0-9]*required

source journey id

typestringrequired
Value:"journey"
attributesobjectrequired
relationshipsobjectrequired
curl -i -X POST \
  https://api-cdp.treasuredata.com/entities/journeys/duplicate \
  -H 'Authorization: YOUR_API_KEY_HERE' \
  -H 'Content-Type: application/vnd.treasuredata.v1+json' \
  -d '{
    "id": "string",
    "type": "journey",
    "attributes": {
      "name": "string"
    },
    "relationships": {
      "parentFolder": {
        "data": {
          "id": "string",
          "type": "folder-segment"
        }
      }
    }
  }'

Responses

Returns a summary of the journey

Bodyapplication/vnd.treasuredata.v1+json
dataobject(JourneyJsonApiResource)required
includedArray of anyrequired
Response
{ "data": { "id": "string", "type": "journey", "attributes": {}, "relationships": {} }, "included": [ {} ] }