Skip to main content
POST
Import dialogue_graph JSON into a dialogue graph

Path Parameters

graph_id
string
required

Body

application/json

Body for POST /dialogues/{id}/import.

Replaces all existing nodes in the graph with the imported set. Node ids in the import payload are preserved if they look like UUIDs; otherwise new UUIDs are minted (the original id is mapped to the new one when resolving edges → branches).

nodes
DialogueGraphNodeJSON · object[]
edges
DialogueGraphEdgeJSON · object[]
start_node_id
string | null

Response

Import completed

Response for POST /dialogues/{id}/import.

graph_id
string
required
nodes_created
integer
required
edges_created
integer
required