Create a new variation
Changed onCreates a new variation for an agent
Request
- Base URLhttps://api.cadenya.com
- URLhttps://api.cadenya.com/v1/workspaces/{workspaceId}/agents/{agentId}/variations
- AuthHTTP bearer
Path parameters
Workspace ID.
Agent ID. Accepts the canonical agent_… form or the external_id:<value> form.
Request body
Example request
{
"workspaceId": "workspace_01HXKD2E5NQM3T9AYWCF133E3Q",
"agentId": "agent_01HXKD2E5NQM3T9AYWCFMGWT9Y",
"spec": {
"modelConfig": {
"modelId": "claude/opus-4.6"
}
}
}Response
OK
Example response
{
"metadata": {
"accountId": "account_01HXKD2E5NQM3T9AYWCFTJHJVF",
"workspaceId": "workspace_01HXKD2E5NQM3T9AYWCF133E3Q",
"profileId": "profile_01HXKD2E5NQM3T9AYWCFS0AP08"
},
"spec": {
"modelConfig": {
"modelId": "claude/opus-4.6"
}
},
"info": {
"createdBy": {
"metadata": {
"accountId": "account_01HXKD2E5NQM3T9AYWCFTJHJVF",
"profileId": "profile_01HXKD2E5NQM3T9AYWCFS0AP08"
}
},
"model": {
"accountId": "account_01HXKD2E5NQM3T9AYWCFTJHJVF",
"workspaceId": "workspace_01HXKD2E5NQM3T9AYWCF133E3Q",
"profileId": "profile_01HXKD2E5NQM3T9AYWCFS0AP08"
},
"assignments": [
{
"id": "avt_01HXKD2E5NQM3T9AYWCFJE6K89"
}
],
"memoryLayerAssignments": [
{
"id": "avml_01HXKD2E5NQM3T9AYWCFX8AF59"
}
]
}
}Changes
- breaking
added to the
//////response propertyoneOflist for the response status - breaking
the
//////response's property type changed fromobjectto no type for status - warning
removed the optional property
///////from the response with the status - warning
removed the optional property
///////from the response with the status - warning
removed the optional property
///////from the response with the status - warning
removed the optional property
///////from the response with the status - info
added discriminator to
//////response property for the response status
- breaking
- warning
removed the request property
////// - warning
removed the optional property
//////////from the response with the status
- warning