PUT
/
api
/
admin
/
journeys
curl --request PUT \
  --url http://localhost:3001/api/admin/journeys/ \
  --header 'Content-Type: application/json' \
  --data '{
  "id": "<string>",
  "workspaceId": "<string>",
  "name": "<string>",
  "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",
  "draft": {
    "nodes": [
      {
        "id": "<string>",
        "data": {
          "type": "JourneyUiNodeDefinitionProps",
          "nodeTypeProps": {
            "type": "EntryUiNode",
            "variant": {
              "segment": "<string>",
              "child": "<string>",
              "reEnter": true,
              "type": "EntryNode"
            }
          }
        }
      }
    ],
    "edges": [
      {
        "source": "<string>",
        "target": "<string>",
        "data": {
          "type": "JourneyUiDefinitionEdgeProps",
          "disableMarker": true
        }
      }
    ]
  }
}'
{
  "id": "<string>",
  "workspaceId": "<string>",
  "name": "<string>",
  "canRunMultiple": true,
  "updatedAt": 123,
  "draft": {
    "nodes": [
      {
        "id": "<string>",
        "data": {
          "type": "JourneyUiNodeDefinitionProps",
          "nodeTypeProps": {
            "type": "EntryUiNode",
            "variant": {
              "segment": "<string>",
              "child": "<string>",
              "reEnter": true,
              "type": "EntryNode"
            }
          }
        }
      }
    ],
    "edges": [
      {
        "source": "<string>",
        "target": "<string>",
        "data": {
          "type": "JourneyUiDefinitionEdgeProps",
          "disableMarker": true
        }
      }
    ]
  },
  "status": "NotStarted",
  "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>"
      }
    ]
  },
  "createdAt": 123
}

Body

application/json
workspaceId
string
required
name
string
required
id
string
canRunMultiple
boolean
updatedAt
number
definition
object
status
Available options:
NotStarted
draft
object | null

Response

200
application/json
Default Response
id
string
required
workspaceId
string
required
name
string
required
updatedAt
number
required
status
enum<string>
required
Available options:
NotStarted
createdAt
number
required
canRunMultiple
boolean
draft
object
definition
object