4e064cf81dae

latestOpenAPI 3.1.02026-08-131831,331960.0 KB
experiments

Replace an experiment

Replace editable fields for an experiment.

put/api/v2/experiments/{experiment_id}/

Path parameters

experiment_idstring required

Experiment ID returned as id in experiment responses.

Headers

Authorizationstring required

Use your Respan API key for Respan API authentication. Enter only the Respan API key value; clients send Authorization: Bearer <RESPAN_API_KEY>. For /api/responses, provider credentials such as Perplexity, OpenAI, or Azure OpenAI go in Settings -> Providers or respan_params.credential_override in the request body, not in this authentication field.

Request body

dataset_idstring

Dataset ID to process.

evaluator_idsstring[]

Preferred evaluator identifiers for scoring. Mutually exclusive with evaluator_workflow_ids.

evaluator_slugsstring[]

Backward-compatible alias for evaluator_ids. If both are provided, evaluator_ids takes precedence.

evaluator_workflow_idsstring[]

WorkflowVersion IDs configured for eval-only scoring. Mutually exclusive with evaluator IDs/slugs.

experiment_idstring

Optional client-provided experiment ID. The backend generates one when omitted.

namestring

Experiment name.

descriptionstring

Experiment description.

span_workflow_namestring

Root workflow span name.

enable_tracingboolean

Whether to create trace logs.

batch_sizeinteger

Batch size for processing.

concurrencyinteger

Number of concurrent workers.

generation_methodstring

Optional evaluation generation method override.

Response

Updated experiment.

idstring required

Experiment ID.

namestring required

Experiment name.

descriptionstring nullable

Experiment description.

datasetstring nullable

Dataset ID associated with the experiment.

dataset_idstring nullable

Dataset ID associated with the experiment.

dataset_namestring nullable

Dataset name, when available.

workflow_countinteger

Number of workflow steps.

statusstring required

Experiment execution status.

progressnumber double

Execution progress percentage.

created_atstring date-time required
started_atstring date-time nullable
completed_atstring date-time nullable
tagsobject[]

Tags attached to the experiment.

evaluator_idsstring[]

Evaluator IDs used for scoring.

evaluator_slugsstring[]

Backward-compatible evaluator identifiers stored by the backend.

evaluator_workflow_idsstring[]

Eval-only workflow versions used for scoring.

batch_sizeinteger
concurrencyinteger
enable_tracingboolean
error_messagestring nullable

Failure details when status is failed.