Import evals from a bundle onto an existing agent
POSThttps://platform.docana.com/api/v1/agents/:agentId/test-cases/import/
Imports the evals from an exported agent bundle onto an existing agent, leaving the agent itself untouched. Accepts the same file as importAgents — application/json or multipart/form-data with a file field — and reads its agent.evals plus the agent.evalMockBaseline those evals rely on. Evals are matched by name, so re-importing the same file updates the test cases rather than duplicating them. Nothing is executed: use POST /api/v1/agents/{agentId}/test-cases/{testCaseId}/run/ to run one. Fails with 422 when an imported eval references an evaluation criterion the target agent does not have.
Request
Responses
- 200
- 400
- 401
- 403
- 404
- 422
- 500
Import summary
Invalid payload or missing applicationId
The API key or session is missing, expired, or malformed.
No access to the application
Agent not found in the application
An imported eval references an unresolvable criterion
Unexpected server error.