v56

latestOpenAPI 3.1.0raw.githubusercontent.com2026-08-01142337440.5 KB
ModelService
Models

Swap models on agent variations

Reassigns agent variations from one model to another in bulk. Runs asynchronously and returns immediately.

post/v1/workspaces/{workspaceId}/models:swapModelOnVariations

Path parameters

workspaceIdstring required
Example:workspace_01HXKD2E5NQM3T9AYWCF133E3Q

Workspace ID.

Request body

workspaceIdstring

Workspace ID.

Example request

{
  "workspaceId": "workspace_01HXKD2E5NQM3T9AYWCF133E3Q",
  "modelSwaps": [
    {
      "currentModelId": "model_01HXKD2E5NQM3T9AYWCFKJ4GED",
      "nextModelId": "model_01HXKD2E5NQM3T9AYWCFKJ4GED"
    }
  ]
}

Response

OK

SwapModelOnVariationsResponse required

Swap model on variations response. Empty: the work runs asynchronously, so no counts are returned (a large data set would make the call slow).