Publish the tested experiment variant
POSThttps://platform.docana.com/api/v1/agents/:agentId/experiments/:experimentId/publish/
Requires the four reviewed control/variant pins from the experiment readout. Validates the actual candidate under publication locks, selects it as main, publishes through normal checkpoint validation and ends only this experiment in one transaction. Stale pins and retries after publication return conflict. History publication is refused while another experiment is running. Ordinary branch promotion remains draft-only.
Request
Responses
- 200
- 400
- 401
- 403
- 404
- 409
- 422
- 500
Tested variant published
The request body, query, or path failed validation. See validationErrors.
The API key or session is missing, expired, or malformed.
The caller is authenticated but not allowed to perform this operation.
Experiment unavailable or access denied
Reviewed pair or candidate changed, or another experiment is running
Tested variant failed publication validation
Unexpected server error.