provider AI Configs PATCH /api/v2/projects/{projectKey}/ai-configs/{configKey}/variations/{variationKey}
@utdk/launchdarkly /api/v2/projects/{projectKey}/ai-configs/{configKey}/variations/{variationKey}
Update AI Config variation
Edit an existing variation of an AI Config. This creates a new version of the variation. The request body must be a JSON object of the fields to update. The values you include replace the existing values for the fields. Here's an example: ``` { "messages": [ { "role": "system", "content": "The new message" } ] } ```
projectKey path required
string
configKey path required
string
variationKey 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.

patchaiconfigvariation
PATCH/api/v2/projects/{projectKey}/ai-configs/{configKey}/variations/{variationKey}
Edit an existing variation of an AI Config. This creates a new version of the variation. The request body must be a JSON object of the fields to update. The values you include replace the existing values for the fields. Here's an example: ``` { "messages": [ { "role": "system", "content": "The new message" } ] } ```

Parameters

required
required
required

Input

Human-readable description of what this patch changes

Description for agent when AI Config is in agent mode.

Instructions for agent when AI Config is in agent mode.

One of 'archived', 'published'

List of tools to use for this variation. The latest version of the tool will be used.

List of tool keys to use for this variation. The latest version of the tool will be used.

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.patchaiconfigvariation()