Update agent metadata and/or mutate graph structure.
operations (create_node, update_node, delete_node, create_connection, delete_connection).
Node positions are always backend-managed (auto-layout).
PATCH /agent/{agent_id}/update.
| Field | Type | Required | Description |
|---|---|---|---|
name | string | No | Agent name (1-120 chars). |
description | string | No | Agent description (<=5000 chars). |
visibility | string | No | public or private. |
operations[] | array | No | Ordered graph operations for node/connection mutations. |
name, description, visibility, or operations is required.
create_node| Field | Type | Required | Description |
|---|---|---|---|
op | string | Yes | Must be "create_node". |
node_type_id | string (UUID) | Yes | Node type to instantiate. |
temp_ref_id | string | No | Request-scoped temporary reference for this newly created node. Use this in later operations in the same request. Not persisted. |
params_used | object | No | Initial node parameters. |
agent_node_id, and returns mapping details in created_nodes. You cannot supply agent_node_id in create_node; use returned IDs for later operations.
temp_ref_id is only valid within the current update request. It is never saved and cannot be reused in future update calls.
update_node| Field | Type | Required | Description |
|---|---|---|---|
op | string | Yes | Must be "update_node". |
agent_node_id | string (UUID) | Yes | Existing persisted node to update. |
params_used | object | Yes | Parameter patch object merged into current node params. |
delete_node| Field | Type | Required | Description |
|---|---|---|---|
op | string | Yes | Must be "delete_node". |
agent_node_id | string (UUID) | Yes | Existing persisted node to delete. |
create_connection| Field | Type | Required | Description |
|---|---|---|---|
op | string | Yes | Must be "create_connection". |
source_agent_node_id | string (UUID) | Conditional | Source existing node ID. Provide this or source_temp_ref_id. |
source_temp_ref_id | string | Conditional | Source temp ref from earlier create_node operation in the same request. Provide this or source_agent_node_id. |
target_agent_node_id | string (UUID) | Conditional | Target existing node ID. Provide this or target_temp_ref_id. |
target_temp_ref_id | string | Conditional | Target temp ref from earlier create_node operation in the same request. Provide this or target_agent_node_id. |
source_agent_node_id or source_temp_ref_id).target_agent_node_id or target_temp_ref_id).source_temp_ref_id and target_temp_ref_id must reference a temp_ref_id created by an earlier create_node operation in the same request.Operation 3: ...) to make retries deterministic.
delete_connection| Field | Type | Required | Description |
|---|---|---|---|
op | string | Yes | Must be "delete_connection". |
source_agent_node_id | string (UUID) | Conditional | Source existing node ID. Provide this or source_temp_ref_id. |
source_temp_ref_id | string | Conditional | Source temp ref from earlier create_node operation in the same request. Provide this or source_agent_node_id. |
target_agent_node_id | string (UUID) | Conditional | Target existing node ID. Provide this or target_temp_ref_id. |
target_temp_ref_id | string | Conditional | Target temp ref from earlier create_node operation in the same request. Provide this or target_agent_node_id. |
delete_connection then create_connection in the same operations array; execution order is preserved and applied atomically.