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

Authentication

Authorizationstring
API Key authentication via header

Path parameters

projectKeystringRequired
configKeystringRequired
variationKeystringRequired

Request

AI Config variation object to update
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
modelobjectOptional
modelConfigKeystringOptional
namestringOptional
publishedbooleanOptional
statestringOptional
One of 'archived', 'published'
toolslist of objectsOptional
List of tools to use for this variation. The latest version of the tool will be used.
toolKeyslist of stringsOptional
List of tool keys to use for this variation. The latest version of the tool will be used.
judgeConfigurationobjectOptional

Response

AI Config variation updated
keystring
_idstring
modelobject
namestring
createdAtlong
versioninteger
colorstring
commentstring
descriptionstring
Returns the description for the agent. This is only returned for agent variations.
instructionsstring
Returns the instructions for the agent. This is only returned for agent variations.
messageslist of objects
modelConfigKeystring
statestring
_archivedAtlong
_publishedAtlong
toolslist of objects
judgeConfigurationobject
judgingConfigKeyslist of strings

Errors

400
Bad Request Error
403
Forbidden Error
404
Not Found Error
500
Internal Server Error