Choose what an evaluation judges

PUT
/v1/evaluations/{id}/scoring

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.

Authorization

apiKey
headerAuthorizationBearer <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.

Path Parameters

id*string

The evaluation id.

Request Body

application/json
  1. body
subjects*array<>

What to judge: call, conversation, run (a test conversation) or any of them.

Items1 <= items <= 4
sampleRate*number

The share of subjects to judge, above 0 up to 1.

Range0 < value <= 1

Response Body

The choice as saved, and its price

application/json
  1. response
scoring*
quote*
Example Request
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  }}