Replace an evaluator
Replace the current draft/latest evaluator configuration. Committed read-only versions cannot be edited.
Authentication
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, OpenAI or Azure OpenAI provider credentials go in Settings -> Providers or the request body credential_override field, not in this auth field.
Use a dashboard JWT only for dashboard-authenticated endpoints. Respan API-key endpoints use the respanApiKey auth field instead.
Path parameters
Evaluator ID. To run a specific version, pass an ID with a version suffix where supported, for example evl_abc123:2.
Request
Organization-scoped evaluator slug.
Optional pre-built evaluator template.
Score configuration. For numerical/percentage scores, use min_score and max_score. For select scores, use choices.
Legacy user-facing configuration object. New clients should prefer llm_config, code_config, score_config, and passing_conditions.
Response
Organization-scoped evaluator slug.
Optional pre-built evaluator template.
Score configuration. For numerical/percentage scores, use min_score and max_score. For select scores, use choices.
Legacy user-facing configuration object. New clients should prefer llm_config, code_config, score_config, and passing_conditions.