Create a test case for an agent
POSThttps://platform.docana.com/api/v1/agents/:agentId/test-cases/
The name must be unique within the agent. When scheduler is set and the test case is enabled, the platform also runs it automatically on that cron schedule. Trigger it on demand with POST /api/v1/agents/{agentId}/test-cases/{testCaseId}/run/. The application scope comes from applicationId in the body, or from the query string when the body omits it, and defaults to the agent's own application when both omit it. An agent that is not part of an application needs an explicit applicationId.
Request
Responses
- 201
- 400
- 401
- 403
- 404
- 500
The created test case
Invalid body, or no applicationId for an agent outside an application
The API key or session is missing, expired, or malformed.
The caller is authenticated but not allowed to perform this operation.
A resource referenced by the path does not exist or is not visible to the caller.
Test case creation failure