Generate or update test cases from the agent flow
POSThttps://platform.docana.com/api/v1/agents/:agentId/test-cases/update-from-flow/
Reads the agent's live workflow and derives one skeleton test case per decision and action node, without using an LLM (see POST /api/v1/agents/{agentId}/test-cases/generate-spec/ for LLM generation). Existing test cases are matched by name: matches are updated in place and the rest are created. The response lists each affected test case with the action taken.
Request
Responses
- 200
- 400
- 401
- 403
- 404
- 500
The generated and updated test cases
Agent spec does not contain a valid workflow
The API key or session is missing, expired, or malformed.
Insufficient permissions on the application
Agent not found
Update failure