Runs
Create Experiment Run
Create an experiment run.
The experiment_id and an optional workflow_id are supplied in the body.
When workflow_id is omitted, the experiment’s workflow is used; when
supplied, it must match that workflow or the request is rejected with 404.
POST
Trigger an experiment run with the current draft block configuration.
The canonical API route is flat: send
experiment_id in the request body.
workflow_id is optional in the body and scopes the lookup when provided.
This is the call that produces metrics: it re-processes every experiment
document through the block with n_consensus parallel passes per document.
Use it after creating an experiment, after editing the block, or after
changing the document set.
The endpoint is async - it returns a run resource immediately. Poll the
experiment run with Get Experiment Run
until it reaches a terminal status, then read metrics with Get Experiment Run
Metrics.
Runs use the experiment’s stored n_consensus and document set.
Authorizations
Body
application/json
Request body to create an experiment run.
workflow_id is optional; when omitted it is taken from the experiment,
and when supplied it must match the experiment's workflow.
Response
Successful Response
A single execution of an experiment, identified by id.
Available options:
extract, classifier, split, for_each Available options:
3, 5, 7 The experiment run has been created but execution has not started.
- PendingWorkflowExperimentRun
- QueuedWorkflowExperimentRun
- RunningWorkflowExperimentRun
- CompletedWorkflowExperimentRun
- ErrorWorkflowExperimentRun
- CancelledWorkflowExperimentRun