Update Evaluation Scenario Router
PUT/human-evaluations/:evaluation_id/evaluation_scenario/:evaluation_scenario_id/:evaluation_type
Updates an evaluation scenario's vote or score based on its type.
Raises: HTTPException: If update fails or unauthorized.
Returns: None: 204 No Content status code upon successful update.
Request
Path Parameters
evaluation_id Evaluation Idrequired
evaluation_scenario_id Evaluation Scenario Idrequired
evaluation_type EvaluationTyperequired
Possible values: [human_a_b_testing
, single_model_test
]
- application/json
Body
required
- MOD1
- MOD1
- MOD2
- MOD1
- MOD1
Array [
]
- MOD1
Array [
]
- MOD1
- MOD1
vote
object
anyOf
string
score
object
anyOf
string
integer
correct_answer
object
anyOf
string
outputs
object
anyOf
variant_id Variant Id (string)required
variant_output Variant Output (string)required
inputs
object
anyOf
input_name Input Name (string)required
input_value Input Value (string)required
is_pinned
object
anyOf
boolean
note
object
anyOf
string
Responses
- 200
- 422
Successful Response
- application/json
- Schema
Schema
any
Validation Error
- application/json
- Schema
- Example (from schema)
Schema
Array [
Array [
- MOD1
- MOD2
]
]
detail
object[]
loc
object[]
required
anyOf
string
integer
msg Message (string)required
type Error Type (string)required
{
"detail": [
{
"loc": [
"string",
0
],
"msg": "string",
"type": "string"
}
]
}
Loading...