For the complete documentation index, see llms.txt. This page is also available as Markdown.

PATCH /v2/evals/evaluators/{evaluator_id}

Update Evaluator

patch

Update metadata and version material changes to judge configuration.

How to use

Update metadata or judge configuration. Material config changes create a new immutable version; account for this when comparing historical scores.

Authentication and permissions

Required permissions: evals.update. Resource and owner access checks also apply.

Prepare request.json

Save the example body below as request.json for the curl sample. Replace example IDs, node keys, and dynamic configuration with values for your organization; these are illustrative, not pre-existing resources.

{
  "name": "Reviewed evaluator"
}
Authorizations
AuthorizationstringRequired

Personal API key (sk_...) or supported user access JWT. See Authentication and authorization for endpoint restrictions and scopes. Use exactly one Authorization header.

Path parameters
evaluator_idstring · uuidRequired
Body
namestring · min: 1 · max: 200 · nullableOptional

New name. Omit or send null to keep the current name.

descriptionstring · nullableOptional

New description. Omit to keep the current description; send null to clear it. Example: {"description": null}.

judge_providerstring · enum · nullableOptional

LLM judge provider override. Omit to keep it; send null to clear it. Any existing judge_model_id override must also be cleared when removing the provider. Example: {"judge_provider": null, "judge_model_id": null}.

Possible values:
judge_model_idstring · nullableOptional

LLM judge model override. Omit to keep it; send null to clear it. A model override requires a provider override in the resulting configuration. Example: {"judge_model_id": null}.

Responses
200

Successful Response

application/json
response_codestring · nullableOptional

Machine-readable response code, when provided.

patch/v2/evals/evaluators/{evaluator_id}
curl
curl --fail-with-body -sS -X PATCH \
  "$STACKAI_BASE_URL/v2/evals/evaluators/${EVALUATOR_ID}" \
  -H "Authorization: Bearer $STACKAI_API_KEY" \
  -H 'Content-Type: application/json' \
  --data-binary @request.json
{
  "response_code": "text",
  "meta": {
    "ANY_ADDITIONAL_PROPERTY": "anything"
  },
  "data": {
    "evaluator_id": "123e4567-e89b-12d3-a456-426614174000",
    "project_id": "text",
    "name": "text",
    "description": "text",
    "evaluator_type": "llm_judge",
    "version_number": 1,
    "node_contract": {
      "input_kind": "start_node",
      "input_keys": [
        "text"
      ],
      "output_node_ids": [
        "text"
      ]
    },
    "config": {
      "ANY_ADDITIONAL_PROPERTY": "anything"
    },
    "score_kind": "numeric",
    "uses_input": true,
    "uses_expected_output": true,
    "judge_provider": "text",
    "judge_model_id": "text",
    "created_by": "123e4567-e89b-12d3-a456-426614174000",
    "updated_by": "123e4567-e89b-12d3-a456-426614174000",
    "created_at": "2026-01-01T00:00:00.000Z",
    "updated_at": "2026-01-01T00:00:00.000Z"
  }
}

Last updated

Was this helpful?