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"
}
]
}

Path parameters

projectKeystringRequired
configKeystringRequired
variationKeystringRequired

Headers

AuthorizationstringRequired
LD-API-Version"beta"Required
Version of the endpoint.

Request

This endpoint expects an object.
commentstringOptional

Human-readable description of what this patch changes

descriptionstringOptional
Description for agent when AI Config is in agent mode.
instructionsstringOptional
Instructions for agent when AI Config is in agent mode.
messageslist of objectsOptional
modelmap from strings to anyOptional
modelConfigKeystringOptional
namestringOptional
publishedbooleanOptional
statestringOptional
One of 'archived', 'published'

Response

AI Config variation updated
keystring
_idstring
modelmap from strings to any
namestring
createdAtlong
versioninteger
colorstring or null
commentstring or null
descriptionstring or null
Returns the description for the agent. This is only returned for agent variations.
instructionsstring or null
Returns the instructions for the agent. This is only returned for agent variations.
messageslist of objects or null
modelConfigKeystring or null
statestring or null
_archivedAtlong or null
_publishedAtlong or null

Errors