Update eval

http
PATCH /projects/{project_reference}/evals/{eval_id}

Change fields of a structured eval, such as its name, target, dataset or metrics, where an omitted field keeps its value; returns the updated eval source document. Requires project.evals.write.

Parameters

NameInRequiredDescription
project_referencepathYesProject slug, UUID, or domain that identifies the project.
eval_idpathYes
source_target_kindquerySource to use: project or preview_branch. Defaults to project.
target_branch_idqueryPreview branch to use when the target kind is preview_branch.

Request body

FieldTypeRequiredDescription
namestringUpdated eval name. Omit it to keep the name.
descriptionstringUpdated description. Omit it to keep the description.
targetstringUpdated agent identifier. Omit it to keep the target.
datasetobjectUpdated dataset. Omit it to keep the dataset.
metricsarrayUpdated metrics. Omit them to keep the metrics.
repetitionsintegerUpdated repetitions. Omit them to keep the value.
tagsarrayUpdated tags. Omit them to keep the tags.
metadataobjectUpdated metadata object. Omit it to keep the metadata.

Responses

StatusDescription
200The updated eval source document.
400Bad request
401Unauthorized
403Forbidden
404Not found
409Conflict
500Server error
503internal: authentication state is temporarily unavailable and the request was not processed; retry shortly.