Update an eval judge
curl --request PATCH \
--url https://voice-api.onclarity.com/v1/projects/{projectId}/eval-judges/{id} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"temperature": 0.2
}
'import requests
url = "https://voice-api.onclarity.com/v1/projects/{projectId}/eval-judges/{id}"
payload = { "temperature": 0.2 }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PATCH',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({temperature: 0.2})
};
fetch('https://voice-api.onclarity.com/v1/projects/{projectId}/eval-judges/{id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"judge": {
"id": "2b3c4d5e-6f7a-4b8c-9d0e-1f2a3b4c5d6e",
"project_id": "4f3a9b2c-1d2e-4f5a-8b6c-7d8e9f0a1b2c",
"name": "Default judge",
"description": null,
"model": "gemini-2.5-flash",
"prompt_template": "Test case: {name}\nWhen relevant: {when_relevant}\nSuccess: {success_criteria}\nFailure: {failure_criteria}\n\nTranscript:\n{conversation_text}",
"temperature": 0.2,
"created_by": "org-token:42",
"created_at": "2026-10-01T09:00:00.000Z",
"updated_at": "2026-10-22T10:05:00.000Z"
}
}{
"error": "Invalid or revoked token"
}{
"error": "<string>",
"code": "<string>"
}{
"error": "<string>",
"code": "<string>"
}{
"error": "An eval judge named \"Default judge\" already exists in this project"
}{
"error": "name: String must contain at least 1 character(s)",
"issues": [
{
"path": "name",
"code": "too_small",
"message": "String must contain at least 1 character(s)",
"minimum": 1
}
]
}Eval judges
Update an eval judge
Changes the fields you send. Submissions that already ran keep their verdicts; later judging uses the new settings.
PATCH
/
v1
/
projects
/
{projectId}
/
eval-judges
/
{id}
Update an eval judge
curl --request PATCH \
--url https://voice-api.onclarity.com/v1/projects/{projectId}/eval-judges/{id} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"temperature": 0.2
}
'import requests
url = "https://voice-api.onclarity.com/v1/projects/{projectId}/eval-judges/{id}"
payload = { "temperature": 0.2 }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PATCH',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({temperature: 0.2})
};
fetch('https://voice-api.onclarity.com/v1/projects/{projectId}/eval-judges/{id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"judge": {
"id": "2b3c4d5e-6f7a-4b8c-9d0e-1f2a3b4c5d6e",
"project_id": "4f3a9b2c-1d2e-4f5a-8b6c-7d8e9f0a1b2c",
"name": "Default judge",
"description": null,
"model": "gemini-2.5-flash",
"prompt_template": "Test case: {name}\nWhen relevant: {when_relevant}\nSuccess: {success_criteria}\nFailure: {failure_criteria}\n\nTranscript:\n{conversation_text}",
"temperature": 0.2,
"created_by": "org-token:42",
"created_at": "2026-10-01T09:00:00.000Z",
"updated_at": "2026-10-22T10:05:00.000Z"
}
}{
"error": "Invalid or revoked token"
}{
"error": "<string>",
"code": "<string>"
}{
"error": "<string>",
"code": "<string>"
}{
"error": "An eval judge named \"Default judge\" already exists in this project"
}{
"error": "name: String must contain at least 1 character(s)",
"issues": [
{
"path": "name",
"code": "too_small",
"message": "String must contain at least 1 character(s)",
"minimum": 1
}
]
}Authorizations
Your organization API key (it starts with anek_org_). The same key works on the Voice API and the Support API. See Authentication.
Body
application/json
Response
The updated judge
An LLM judge configuration: the model, temperature and prompt template used to decide each test case of an eval call.
Show child attributes
Show child attributes