Update Evaluation Scenario Router
PUThttps://cloud.agenta.ai/api/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
vote Vote (string)
score
object
correct_answer Correct Answer (string)
outputs
object[]
inputs
object[]
is_pinned Is Pinned (boolean)
note Note (string)
Responses
- 200
- 422
Successful Response
- application/json
- Schema
Schema
any
Validation Error
- application/json
- Schema
- Example (from schema)
Schema
detail
object[]
{
"detail": [
{
"loc": [
"string",
0
],
"msg": "string",
"type": "string"
}
]
}
- curl
- python
- go
- nodejs
- ruby
- csharp
- php
- java
- powershell
- CURL
curl -L -X PUT 'https://cloud.agenta.ai/api/human-evaluations/:evaluation_id/evaluation_scenario/:evaluation_scenario_id/:evaluation_type' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authorization: <API_KEY_VALUE>' \
-d '{
"vote": "string",
"score": "string",
"correct_answer": "string",
"outputs": [
{
"variant_id": "string",
"variant_output": "string"
}
],
"inputs": [
{
"input_name": "string",
"input_value": "string"
}
],
"is_pinned": true,
"note": "string"
}'
ResponseClear