Replace the baseline node mocks of an agent
PUThttps://platform.docana.com/api/v1/agents/:agentId/eval-mock-baseline/
Baseline node mocks are the fallback underneath every eval of this agent. When an eval runs, its own nodeMocks win per node id and the baseline answers for the rest. An agent without a baseline behaves exactly as it did before baselines existed: a node with no mock performs a real webhook call. This replaces the whole set rather than patching it. Every node id must exist somewhere in the agent tree, including sub-agent workflows; unknown ids are rejected.
Request
Responses
- 200
- 400
- 401
- 403
- 404
- 500
The saved baseline
Invalid mocks or unknown node id
The API key or session is missing, expired, or malformed.
No access to the application
A resource referenced by the path does not exist or is not visible to the caller.
Unexpected server error.