curl --request PUT \
--url http://localhost:3001/api/admin/journeys/ \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '
{
"workspaceId": "<string>",
"id": "<string>",
"name": "<string>",
"draft": {
"nodes": [
{
"id": "<string>",
"data": {
"type": "JourneyUiNodeDefinitionProps",
"nodeTypeProps": {
"type": "EntryUiNode",
"variant": {
"type": "EntryNode",
"segment": "<string>",
"child": "<string>",
"reEnter": true
}
}
}
}
],
"edges": [
{
"source": "<string>",
"target": "<string>",
"data": {
"type": "JourneyUiDefinitionEdgeProps",
"disableMarker": true
}
}
]
},
"canRunMultiple": true,
"updatedAt": 123,
"definition": {
"entryNode": {
"type": "EntryNode",
"segment": "<string>",
"child": "<string>",
"reEnter": true
},
"exitNode": {
"type": "ExitNode"
},
"nodes": [
{
"id": "<string>",
"type": "DelayNode",
"variant": {
"type": "Second",
"seconds": 123
},
"child": "<string>"
}
]
},
"status": "NotStarted"
}
'{
"id": "<string>",
"workspaceId": "<string>",
"name": "<string>",
"updatedAt": 123,
"status": "NotStarted",
"createdAt": 123,
"canRunMultiple": true,
"draft": {
"nodes": [
{
"id": "<string>",
"data": {
"type": "JourneyUiNodeDefinitionProps",
"nodeTypeProps": {
"type": "EntryUiNode",
"variant": {
"type": "EntryNode",
"segment": "<string>",
"child": "<string>",
"reEnter": true
}
}
}
}
],
"edges": [
{
"source": "<string>",
"target": "<string>",
"data": {
"type": "JourneyUiDefinitionEdgeProps",
"disableMarker": true
}
}
]
},
"definition": {
"entryNode": {
"type": "EntryNode",
"segment": "<string>",
"child": "<string>",
"reEnter": true
},
"exitNode": {
"type": "ExitNode"
},
"nodes": [
{
"id": "<string>",
"type": "DelayNode",
"variant": {
"type": "Second",
"seconds": 123
},
"child": "<string>"
}
]
}
}Create or update a journey.
curl --request PUT \
--url http://localhost:3001/api/admin/journeys/ \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '
{
"workspaceId": "<string>",
"id": "<string>",
"name": "<string>",
"draft": {
"nodes": [
{
"id": "<string>",
"data": {
"type": "JourneyUiNodeDefinitionProps",
"nodeTypeProps": {
"type": "EntryUiNode",
"variant": {
"type": "EntryNode",
"segment": "<string>",
"child": "<string>",
"reEnter": true
}
}
}
}
],
"edges": [
{
"source": "<string>",
"target": "<string>",
"data": {
"type": "JourneyUiDefinitionEdgeProps",
"disableMarker": true
}
}
]
},
"canRunMultiple": true,
"updatedAt": 123,
"definition": {
"entryNode": {
"type": "EntryNode",
"segment": "<string>",
"child": "<string>",
"reEnter": true
},
"exitNode": {
"type": "ExitNode"
},
"nodes": [
{
"id": "<string>",
"type": "DelayNode",
"variant": {
"type": "Second",
"seconds": 123
},
"child": "<string>"
}
]
},
"status": "NotStarted"
}
'{
"id": "<string>",
"workspaceId": "<string>",
"name": "<string>",
"updatedAt": 123,
"status": "NotStarted",
"createdAt": 123,
"canRunMultiple": true,
"draft": {
"nodes": [
{
"id": "<string>",
"data": {
"type": "JourneyUiNodeDefinitionProps",
"nodeTypeProps": {
"type": "EntryUiNode",
"variant": {
"type": "EntryNode",
"segment": "<string>",
"child": "<string>",
"reEnter": true
}
}
}
}
],
"edges": [
{
"source": "<string>",
"target": "<string>",
"data": {
"type": "JourneyUiDefinitionEdgeProps",
"disableMarker": true
}
}
]
},
"definition": {
"entryNode": {
"type": "EntryNode",
"segment": "<string>",
"child": "<string>",
"reEnter": true
},
"exitNode": {
"type": "ExitNode"
},
"nodes": [
{
"id": "<string>",
"type": "DelayNode",
"variant": {
"type": "Second",
"seconds": 123
},
"child": "<string>"
}
]
}
}Show child attributes
Show child attributes
Show child attributes
JourneyUiNodeDefinitionProps Show child attributes
EntryUiNode Show child attributes
The first node in a journey - triggered when a user enters a segment.
Delays a users progression through the journey for either a set amount of time, or until a specific date time.
Show child attributes
DelayNode NotStarted Default Response
NotStarted Show child attributes
Show child attributes
Show child attributes
JourneyUiNodeDefinitionProps Show child attributes
EntryUiNode Show child attributes
The first node in a journey - triggered when a user enters a segment.
Delays a users progression through the journey for either a set amount of time, or until a specific date time.
Show child attributes
DelayNode