Skip to content

Create a duplicate of the specified realtime journey

Request

Create a duplicate of the specified realtime journey

Security
TdApikeyAuth
Bodyapplication/vnd.treasuredata.v1+jsonrequired

parameters to duplicate a realtime 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/realtime_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/json
dataobject(partial_realtime_journey.yaml-RealtimeJourneyResource)
Response
{ "data": { "id": "string", "type": "realtime-journey", "attributes": {}, "relationships": {} } }