provider AI Configs PATCH /api/v2/projects/{projectKey}/agent-graphs/{graphKey}
@utdk/launchdarkly /api/v2/projects/{projectKey}/agent-graphs/{graphKey}
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.
LD-API-Version header required
Version of the endpoint.
enum: beta
projectKey path required
string
graphKey path required
string

Try it

Authentication
Configure credentials for LaunchDarkly REST API
Gateway
The gateway proxies requests and injects credentials server-side. Configure credentials above, then enter your gateway URL.

Saved automatically to browser storage.

patchagentgraph
PATCH/api/v2/projects/{projectKey}/agent-graphs/{graphKey}
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.

Parameters

required
required

Input

A human-readable name for the agent graph

A description of the agent graph

The ID of the member who maintains this agent graph. Pass an empty string to remove maintainer.

The key of the team that maintains this agent graph. Pass an empty string to remove maintainer.

The AI Config key of the root node. If present, edges must also be present.

The edges in the graph. If present, rootConfigKey must also be present. Replaces all existing edges.

Enter a gateway URL above to enable sending.

Code snippet
Updates live as you fill in the form above.

TypeScript

import launchdarkly from '@utdk/launchdarkly';

await launchdarkly.patchagentgraph()