Skip to main content

Import evals from a bundle onto an existing agent

POST 

https://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 importAgentsapplication/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

Import summary