v3

latestOpenAPI 3.1.02026-07-311,4541,5202.3 MB
scores

Replace Score

PUT handler with superadmin lock and field protection.

Same as patch() - checks lock and field protection before delegating.

put/api/scores/{id}/

Path parameters

idstring required

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

organizationinteger required
unique_organization_idstring
type'llm' | 'code' | 'human' | 'function' | 'human_numerical' | 'human_categorical' | 'human_boolean' | 'human_text' | 'custom'
  • llm - Llm
  • code - Code
  • human - Human
  • function - Function
  • human_numerical - Human Numerical
  • human_categorical - Human Categorical
  • human_boolean - Human Boolean
  • human_text - Human Text
  • custom - Custom
environmentstring
numerical_valuenumber double
string_valuestring
boolean_valueboolean nullable
categorical_valuestring[]
json_valuestring
is_passedboolean
costnumber double
evaluator_idstring
evaluator_slugstring
scorerstring
log_idstring
prompt_idstring
prompt_version_numberinteger
dataset_idstring
status'pending' | 'completed' | 'failed'
  • pending - Pending
  • completed - Completed
  • failed - Failed
error_messagestring nullable

Response

idstring required
created_atstring date-time required
updated_byinteger nullable required
type'llm' | 'code' | 'human' | 'function' | 'human_numerical' | 'human_categorical' | 'human_boolean' | 'human_text' | 'custom'
  • llm - Llm
  • code - Code
  • human - Human
  • function - Function
  • human_numerical - Human Numerical
  • human_categorical - Human Categorical
  • human_boolean - Human Boolean
  • human_text - Human Text
  • custom - Custom
environmentstring
numerical_valuenumber double
string_valuestring
boolean_valueboolean nullable
categorical_valuestring[]
json_valuestring
is_passedboolean
costnumber double
evaluator_idstring
evaluator_slugstring
scorerstring
log_idstring
prompt_idstring
prompt_version_numberinteger
dataset_idstring
status'pending' | 'completed' | 'failed'
  • pending - Pending
  • completed - Completed
  • failed - Failed
error_messagestring nullable
inputsstring required