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
maintainerIdstringOptional
The ID of the member who maintains this agent graph. Pass an empty string to remove maintainer.
maintainerTeamKeystringOptional
The key of the team that maintains this agent graph. Pass an empty string to remove maintainer.
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
_maintainerobject or null
rootConfigKeystring or null
The AI Config key of the root node
edgeslist of objects or null
The edges in the graph

Errors