Choose what an evaluation judges
PUT
Chooses whether the evaluation judges finished calls, text conversations or both, and how many of them. Each judgement is charged at its price, so the answer is the quote for the choice: maxUsd at most, typicalUsd as an estimate. An existing evaluation judges calls only until you turn text on here.
Requires an API key with the workspace:write scope.
apiKeyheader
AuthorizationBearer <token>A secret API key from the dashboard (Developers → API keys): vl_live_…, or vl_test_… for test mode. Each operation says which scope the key needs.
id*stringThe evaluation id.
application/json- body
subjects*array<>What to judge: call, conversation, run (a test conversation) or any of them.
Items
1 <= items <= 4sampleRate*numberThe share of subjects to judge, above 0 up to 1.
Range
0 < value <= 1The choice as saved, and its price
application/json- response
scoring*quote*curl -X PUT "https://api.vlayers.ai/v1/evaluations/$EVALUATION_ID/scoring" \ -H "Authorization: Bearer $VOICELAYER_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "subjects": [ "call", "conversation" ], "sampleRate": 0.5 }'Example Response
{ "scoring": { "subjects": [ "call", "conversation" ], "sampleRate": 0.5 }, "quote": { "maxUsd": 0.0123, "typicalUsd": 0.0031, "maxScoresPerConversation": 3, "sampleRate": 0.5, "outcomeIsFree": true }}