Update agent graph

Edit an existing agent graph.

The request body must be a JSON object of the fields to update. The values you include replace the existing values for the fields.

If the update includes rootConfigKey or edges, both must be present and will be treated as full replacements.

Authentication

Authorizationstring
API Key authentication via header

Path parameters

projectKeystringRequired
graphKeystringRequired

Headers

LD-API-VersionenumRequired
Version of the endpoint.
Allowed values:

Request

Agent graph object to update
namestringOptional

A human-readable name for the agent graph

descriptionstringOptional
A description of the agent graph
rootConfigKeystringOptional
The AI Config key of the root node. If present, edges must also be present.
edgeslist of objectsOptional
The edges in the graph. If present, rootConfigKey must also be present. Replaces all existing edges.

Response

Agent graph updated
keystring
A unique key for the agent graph
namestring

A human-readable name for the agent graph

createdAtlong
updatedAtlong
descriptionstring or null
A description of the agent graph
rootConfigKeystring or null
The AI Config key of the root node
edgeslist of objects or null
The edges in the graph

Errors