Replace agent
PUT/v2/agents/:agent_key
Supported API Key Type:
Personal
The Replace Agent API enables you to completely replace an existing agent configuration, including its corpora, tools, and generation presets. This endpoint performs a full replacement of the agent definition, unlike the Update Agent API which only modifies specified fields.
Request
Responses
- 200
- 400
- 403
- 404
The agent has been replaced successfully.
Agent replacement request was malformed or contains invalid references.
Permissions do not allow replacing this agent.
Agent not found.