Sequences

Update sequence node

Updates node data or position. A node type cannot be changed.

patch/public/v1/sequences/{sequenceId}/nodes/{nodeId}

Path parameters

sequenceIdinteger required
Example:1
nodeIdstring required

Request body

Example request

{
  "node": {
    "name": "example",
    "position": {
      "positionX": 1,
      "positionY": 1
    },
    "type": "SEQUENCE_START",
    "data": {
      "type": "SEQUENCE_START",
      "mode": "IMMEDIATELY",
      "waitAmount": 1,
      "waitUnit": "DAYS"
    }
  }
}

Response

Updated sequence graph

idstring
assistantIdstring nullable
accountIdnumber nullable
entityIdnumber required
type'FLOW' | 'AUTOMATION' | 'SEQUENCE' required
createdAtstring required
updatedAtstring nullable
executedboolean
breakingChangeAtstring nullable
breakingChangeReasonstring nullable
snapshotKind'EDITABLE' | 'SEQUENCE_ENROLLMENT'
sourceSnapshotIdstring nullable
pinnedAtstring nullable
warningsstring[]

Example response

{
  "id": "example",
  "assistantId": "example",
  "accountId": 1,
  "entityId": 1,
  "type": "FLOW",
  "nodes": [
    {
      "alias": "example",
      "workflowId": "example",
      "name": "example",
      "position": {
        "positionX": 1,
        "positionY": 1
      },
      "type": "SEQUENCE_START",
      "handles": [
        {
          "handleId": "example",
          "sourceEdge": {
            "from": "example",
            "fromHandleId": "example",
            "to": "example",
            "toHandleId": "example"
          },
          "text": "example"
        }
      ],
      "targetEdges": [
        {
          "from": "example",
          "fromHandleId": "example",
          "to": "example",
          "toHandleId": "example"
        }
      ],
      "data": {
        "type": "RESPONSE_AI",
        "assistantId": "example",
        "aiModelId": 1,
        "model": "example",
        "aiVendor": "OPENAI",
        "instructions": "example",
        "temperature": 1,
        "exitNodeWhen": "ALL_VARIABLES",
        "knowledgeBaseMode": "DEFAULT",
        "knowledgeBaseIds": [
          1
        ]
      },
      "createdAt": "example",
      "updatedAt": "example"
    }
  ],
  "createdAt": "example",
  "updatedAt": "example",
  "breakingChangeAt": "example",
  "breakingChangeReason": "example",
  "snapshotKind": "EDITABLE",
  "sourceSnapshotId": "example",
  "pinnedAt": "example",
  "warnings": [
    "example"
  ]
}

Changes

Changed in 1 of the 2 revisions of this API.1