Replace the automation's graph
Authorization
Bearer AuthorizationBearer <token>
API key (rlay_live_* or rlay_test_). Invite redemption also accepts a server-derived rlay_session_ bearer for a current user session.
In: header
Path Parameters
id*string
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
application/json
application/json
application/json
curl -X PUT "https://example.com/v1/automations/string/graph" \ -H "Content-Type: application/json" \ -d '{ "graph": { "edges": [ { "from_node": "string", "from_port": "string", "to_node": "string", "to_port": "string" } ], "nodes": [ { "key": "string", "kind": "string" } ], "root_node_key": "string", "schema_version": 1 } }'{ "automation": { "status": "draft", "validation_errors": [ null ] }, "graph": { "edges": [ { "from_node": "string", "from_port": "string", "metadata": { "property1": null, "property2": null }, "order_index": 0, "to_node": "string", "to_port": "string" } ], "nodes": [ { "canvas_x": 0, "canvas_y": 0, "config": {}, "key": "string", "kind": "string", "ports": [], "title": "string", "ui_state": { "property1": null, "property2": null } } ], "root_node_key": "string", "schema_version": 1 }, "validation": { "errors": [], "valid": true, "warnings": [] }}Found something wrong? Help us improve this page.