Replace agent
PUT/v2/agents/:agent_key
Replaces the complete configuration of an existing agent, including its steps, instructions, tool configurations, and model. Unlike Update agent, which changes only the fields in the request, this operation replaces the whole agent definition.
Request
Responses
- 200
- 400
- 403
- 404
The complete configuration of the replaced agent.
The agent replacement request is malformed or contains invalid references.
Permissions do not allow replacing this agent.
Agent not found.