Evaluators Versions Create 2

Default POST handler with automatic organization injection. For CREATE operations: - Superadmins can specify organization_id in request body (API key only) - Regular users always use their own organization Override this method for: - POST-for-filtering pattern (delegate to self.get()) - Custom pre-create validation Note: ``inject_target_organization`` is a DEPRECATED ``request.data``-mutating shim kept for backward-compat during the DEV-9410 migration. The blessed path stamps org via ``get_create_save_kwargs`` → ``perform_create`` → a ``read_only`` serializer field. The shim (and these overrides' reliance on it) is removed in C18 (DEV-9430) once every view's org field is read_only.

Authentication

AuthorizationBearer
JWT access token or Respan API key

Path parameters

evaluator_idstringRequired
versionintegerRequired

Request

This endpoint expects an object.
namestringRequired1-255 characters
idstringOptional1-255 characters
version_idstringOptional1-255 characters
versionintegerOptional-2147483648-2147483647
is_read_onlybooleanOptional
version_descriptionstringOptional
descriptionstringOptional
typeenumOptional
  • 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
score_value_typeenumOptional
  • numerical - Numerical
  • boolean - Boolean
  • percentage - Percentage
  • single_select - Single Select
  • multi_select - Multi Select
  • text - Text
  • json - Json
  • comment - Comment
  • categorical - Categorical
score_configmap from strings to anyOptional
passing_conditionsmap from strings to any or nullOptional
llm_configmap from strings to any or nullOptional
code_configmap from strings to any or nullOptional
configurationsmap from strings to anyOptional
categorical_choiceslist of maps from strings to anyOptional
eval_classenumOptional
starredbooleanOptional

Response

namestring<=255 characters
created_atdatetimeRead-only
updated_atdatetimeRead-only
created_byobject
updated_byobject
idstring<=255 characters
version_idstring<=255 characters
versioninteger-2147483648-2147483647
is_read_onlyboolean
version_descriptionstring
descriptionstring
typeenum
  • 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
score_value_typeenum
  • numerical - Numerical
  • boolean - Boolean
  • percentage - Percentage
  • single_select - Single Select
  • multi_select - Multi Select
  • text - Text
  • json - Json
  • comment - Comment
  • categorical - Categorical
score_configmap from strings to any
passing_conditionsmap from strings to any or null
llm_configmap from strings to any or null
code_configmap from strings to any or null
configurationsmap from strings to any
categorical_choiceslist of maps from strings to any
eval_classenum
starredboolean