v36

latestOpenAPI 3.1.0raw.githubusercontent.com2025-10-091882241.2 MB
agents

Migrate Agent

Migrate an agent to a new versioned agent template. This will only work for "classic" and non-multiagent agent templates.

post/v1/agents/{agent_id}/migrate

Path parameters

agent_idstring required

Request body

to_templatestring required
preserve_core_memoriesboolean required
preserve_tool_variablesboolean

If true, preserves the existing agent's tool environment variables instead of using the template's variables

Response

200

successtrue required