Update an evaluator

Partially update the current draft/latest evaluator configuration. Committed read-only versions cannot be edited.

Authentication

AuthorizationBearer

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.

OR
AuthorizationBearer

Use a dashboard JWT only for dashboard-authenticated endpoints. Respan API-key endpoints use the respanApiKey auth field instead.

Path parameters

evaluator_idstringRequired

Evaluator ID. To run a specific version, pass an ID with a version suffix where supported, for example evl_abc123:2.

Request

This endpoint expects an object.
namestringOptional
evaluator_slugstringOptional

Organization-scoped evaluator slug.

typeenumOptional
Allowed values:
score_value_typeenumOptional
eval_classenumOptional

Optional pre-built evaluator template.

Allowed values:
descriptionstring or nullOptional
score_configobjectOptional

Score configuration. For numerical/percentage scores, use min_score and max_score. For select scores, use choices.

passing_conditionsobject or nullOptional
Passing conditions in the standard Respan filter format.
llm_configobject or nullOptional
LLM grader configuration. The backend validates this against the selected evaluator form.
code_configobject or nullOptional
Code grader configuration.
configurationsmap from strings to anyOptional

Legacy user-facing configuration object. New clients should prefer llm_config, code_config, score_config, and passing_conditions.

categorical_choiceslist of objectsOptional
starredbooleanOptional

Response

Updated evaluator.
idstring
Stable evaluator ID shared by all versions.
namestring
typeenum
score_value_typeenum
version_idstringOptional
Unique ID for this evaluator version.
versionintegerOptional
Version number. The first draft is version 0.
is_read_onlybooleanOptional
Whether this version is committed and immutable.
version_descriptionstringOptional
Commit message for this version.
evaluator_slugstringOptional

Organization-scoped evaluator slug.

eval_classenumOptional

Optional pre-built evaluator template.

descriptionstring or nullOptional
score_configobjectOptional

Score configuration. For numerical/percentage scores, use min_score and max_score. For select scores, use choices.

passing_conditionsobject or nullOptional
Passing conditions in the standard Respan filter format.
llm_configobject or nullOptional
LLM grader configuration. The backend validates this against the selected evaluator form.
code_configobject or nullOptional
Code grader configuration.
configurationsmap from strings to anyOptional

Legacy user-facing configuration object. New clients should prefer llm_config, code_config, score_config, and passing_conditions.

categorical_choiceslist of objects or nullOptional
starredbooleanOptional
created_atdatetimeOptional
updated_atdatetimeOptional
created_byobjectOptional
updated_byobjectOptional
editorobjectOptional
tagslist of objectsOptional
is_publicbooleanOptionalRead-only

Whether this is a Respan-managed public evaluator.

Errors

400
Bad Request Error
401
Unauthorized Error
404
Not Found Error