Update AI config variation

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

Path parameters

projectKeystringRequired
configKeystringRequired
variationKeystringRequired

Headers

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

Response

AI config variation updated

keystring
messageslist of objects
modelmap from strings to any
namestring
createdAtlong
versioninteger
publishedAtlong
modelConfigKeystringOptional

Errors

Built with