curl -X PUT https://api.burki.dev/api/v1/assistant-graphs/1 \ -H "Authorization: Bearer YOUR_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "name": "Updated Customer Service Router", "description": "Routes customers to sales, support, or billing" }'
{ "id": 1, "organization_id": 1, "name": "Updated Customer Service Router", "description": "Routes customers to sales, support, or billing", "is_active": true, "configuration": {}, "nodes": [ { "id": 101, "graph_id": 1, "assistant_id": 1, "node_type": "entry", "position": {"x": 0, "y": 0}, "configuration": {}, "created_at": "2025-01-19T10:00:00Z", "assistant_name": "Receptionist", "assistant_description": "Greets callers and routes to departments" } ], "edges": [ { "id": 201, "graph_id": 1, "from_node_id": 101, "to_node_id": 102, "condition_type": "intent", "intent_pattern": "sales,purchase,buy", "priority": 1, "is_active": true, "handoff_sentence": "Let me connect you with our sales team.", "created_at": "2025-01-19T10:00:00Z", "updated_at": "2025-01-19T10:00:00Z" } ], "total_nodes": 3, "total_edges": 2, "created_at": "2025-01-19T10:00:00Z", "updated_at": "2025-01-19T15:30:00Z" }
Update an assistant graph metadata
false