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