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.
messageslist of objectsOptional
modelmap from strings to anyOptional
modelConfigKeystringOptional
namestringOptional
publishedbooleanOptional
statestringOptional

One of ‘archived’, ‘published’

commentstringOptional

Human-readable description of what this patch changes

Response

AI Config variation updated

keystring
messageslist of objects
modelmap from strings to any
namestring
createdAtlong
versioninteger
colorstringOptional
commentstringOptional
modelConfigKeystringOptional
statestringOptional
_archivedAtlongOptional
_publishedAtlongOptional

Errors