Skip to main content
PUT
/
judges
/
{judge_id}
{
  "id": "<string>",
  "updated_at": {},
  "message": "<string>"
}

Overview

Updates an existing judge’s name, description, or criteria. Creates a new version of the judge while preserving the original.

Path Parameters

judge_id
string
required
The unique identifier of the judge to update

Request Body

name
string
Updated name for the judge
description
string
Updated description
criteria
array
Updated list of evaluation criteria

Response

id
string
required
Judge identifier
updated_at
datetime
required
Update timestamp
message
string
required
Success message

Examples

curl -X PUT https://api.judge.example.com/judges/jdg_xyz789 \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "name": "Enhanced Content Quality Judge",
    "criteria": [
      {
        "name": "Clarity",
        "description": "How clear and understandable the content is"
      },
      {
        "name": "Accuracy", 
        "description": "Factual correctness and precision"
      },
      {
        "name": "Engagement",
        "description": "How engaging and interesting the content is"
      }
    ]
  }'
curl -X PUT https://api.judge.example.com/judges/invalid_id \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "name": "Updated Judge"
  }'