Create a new variation
Creates a new variation for an agent
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
Changed in 11 of the 57 revisions of this API.42012
- ▲
added
VariationAssignment_ToolVariationAssignment_ToolSetVariationAssignment_Agentto theinfo/allOf[AgentVariationInfo]/assignments/items/response propertyoneOflist for the response status200response-property-one-of-added
- ▲
the
info/allOf[AgentVariationInfo]/assignments/items/response's property type/format changed fromobject/to/for status200response-property-type-changed
- ●
removed the optional property
info/allOf[AgentVariationInfo]/assignments/items/agentfrom the response with the200statusresponse-optional-property-removed
- ●
removed the optional property
info/allOf[AgentVariationInfo]/assignments/items/idfrom the response with the200statusresponse-optional-property-removed
- ●
removed the optional property
info/allOf[AgentVariationInfo]/assignments/items/toolfrom the response with the200statusresponse-optional-property-removed
- ●
removed the optional property
info/allOf[AgentVariationInfo]/assignments/items/toolSetfrom the response with the200statusresponse-optional-property-removed
- ○
added discriminator to
info/allOf[AgentVariationInfo]/assignments/items/response property for the response status200response-property-discriminator-added
- ▲
- ●
removed the request property
spec/progressiveDiscovery/allOf[AgentVariationSpec_ProgressiveDiscovery]/rerankThresholdrequest-property-removed
- ●
removed the optional property
spec/allOf[AgentVariationSpec]/progressiveDiscovery/allOf[AgentVariationSpec_ProgressiveDiscovery]/rerankThresholdfrom the response with the200statusresponse-optional-property-removed
- ●
- ●
removed the request property
spec/weightrequest-property-removed
- ●
removed the optional property
spec/allOf[AgentVariationSpec]/weightfrom the response with the200statusresponse-optional-property-removed
- ●
- ▲
the
spec/constraints/allOf[AgentVariationSpec_Constraints]/inactivityTimeoutrequest property type/format changed frominteger/tostring/request-property-type-changed
- ▲
the
spec/allOf[AgentVariationSpec]/constraints/allOf[AgentVariationSpec_Constraints]/inactivityTimeoutresponse's property type/format changed frominteger/tostring/for status200response-property-type-changed
- ▲
- ○
added the new optional request property
spec/constraints/allOf[AgentVariationSpec_Constraints]/inactivityTimeoutnew-optional-request-property
- ○
added the optional property
spec/allOf[AgentVariationSpec]/constraints/allOf[AgentVariationSpec_Constraints]/inactivityTimeoutto the response with the200statusresponse-optional-property-added
- ○
- ●
removed the request property
spec/userMessageTemplaterequest-property-removed
- ●
removed the optional property
spec/allOf[AgentVariationSpec]/userMessageTemplatefrom the response with the200statusresponse-optional-property-removed
- ○
added the new optional request property
spec/firstUserMessageTemplatenew-optional-request-property
- ○
added the optional property
spec/allOf[AgentVariationSpec]/firstUserMessageTemplateto the response with the200statusresponse-optional-property-added
- ●
- ●
removed the request property
metadata/bundleKeyrequest-property-removed
- ●
removed the optional property
info/allOf[AgentVariationInfo]/model/allOf[ResourceMetadata]/bundleKeyfrom the response with the200statusresponse-optional-property-removed
- ●
removed the optional property
metadata/allOf[ResourceMetadata]/bundleKeyfrom the response with the200statusresponse-optional-property-removed
- ○
added the optional property
info/allOf[AgentVariationInfo]/createdBy/metadata/createdAtto the response with the200statusresponse-optional-property-added
This revision also has 27 changes that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog
- ●
- ●
removed the request property
spec/enableEpisodicMemoryrequest-property-removed
- ●
removed the request property
spec/episodicMemoryTtlrequest-property-removed
- ●
removed the optional property
spec/allOf[AgentVariationSpec]/enableEpisodicMemoryfrom the response with the200statusresponse-optional-property-removed
- ●
removed the optional property
spec/allOf[AgentVariationSpec]/episodicMemoryTtlfrom the response with the200statusresponse-optional-property-removed
- ●
- ●
removed the request property
spec/promptrequest-property-removed
- ●
removed the optional property
spec/allOf[AgentVariationSpec]/promptfrom the response with the200statusresponse-optional-property-removed
- ○
added the new optional request property
spec/systemPromptTemplatenew-optional-request-property
- ○
added the new optional request property
spec/userMessageTemplatenew-optional-request-property
- ○
added the optional property
spec/allOf[AgentVariationSpec]/systemPromptTemplateto the response with the200statusresponse-optional-property-added
- ○
added the optional property
spec/allOf[AgentVariationSpec]/userMessageTemplateto the response with the200statusresponse-optional-property-added
- ●
- ○
added the optional property
info/allOf[AgentVariationInfo]/model/allOf[ResourceMetadata]/updatedAtto the response with the200statusresponse-optional-property-added
- ○
added the optional property
metadata/allOf[ResourceMetadata]/updatedAtto the response with the200statusresponse-optional-property-added
This revision also has 1 change that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog
- ○