> For the complete documentation index, see [llms.txt](https://docs.stackai.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.stackai.com/stackai-api/rest-api-v2/evaluators-and-previews/patch-v2-evals-evaluators-evaluator_id.md).

# PATCH /v2/evals/evaluators/{evaluator\_id}

## Update Evaluator

> 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.\
> \
> \`\`\`json\
> {\
> &#x20; "name": "Reviewed evaluator"\
> }\
> \`\`\`

````json
{"openapi":"3.1.0","info":{"title":"StackAI API","version":"0.1.0"},"tags":[{"name":"endpoint-updateEvaluatorV2"}],"servers":[{"url":"https://api.stack-ai.com","description":"Hosted API. Use your deployment-specific origin for private installations."}],"security":[{"HTTPBearer":[]}],"components":{"securitySchemes":{"HTTPBearer":{"type":"http","scheme":"bearer","description":"Personal API key (sk_...) or supported user access JWT. See Authentication and authorization for endpoint restrictions and scopes. Use exactly one Authorization header."}},"schemas":{"EvaluatorUpdateRequestV2":{"properties":{"name":{"anyOf":[{"type":"string","maxLength":200,"minLength":1},{"type":"null"}],"title":"Name","description":"New name. Omit or send null to keep the current name."},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description","description":"New description. Omit to keep the current description; send null to clear it. Example: `{\"description\": null}`."},"config":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Config","description":"Replaces the entire evaluator configuration. Omit or send null to keep the current configuration."},"judge_provider":{"anyOf":[{"$ref":"#/components/schemas/LLMProviderEnum"},{"type":"null"}],"description":"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}`."},"judge_model_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Judge Model Id","description":"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}`."},"node_contract":{"anyOf":[{"$ref":"#/components/schemas/EvalNodeContractRequestV2"},{"type":"null"}],"description":"Replacement evaluator contract. Omit or send null to keep the current contract. A changed contract creates a new evaluator version."}},"additionalProperties":false,"type":"object","title":"EvaluatorUpdateRequest"},"LLMProviderEnum":{"type":"string","enum":["Anthropic","Azure","Baseten","Bedrock","Cerebras","Core42","FireworksAI","Google","Google_service_account","Groq","Local","Meta","Mistral","Modular","OpenAI","OpenRouter","Perplexity","Replicate","TogetherAI","XAI"],"title":"LLMProviderEnum","description":"LLM provider identifiers."},"EvalNodeContractRequestV2":{"properties":{"input_kind":{"type":"string","enum":["start_node","legacy_input_nodes"],"title":"Input Kind"},"input_keys":{"items":{"type":"string"},"type":"array","maxItems":1,"minItems":1,"title":"Input Keys"},"output_node_ids":{"items":{"type":"string"},"type":"array","maxItems":1,"minItems":1,"title":"Output Node Ids"}},"additionalProperties":false,"type":"object","required":["input_kind","input_keys","output_node_ids"],"title":"EvalNodeContractRequest"},"StackAIAPIDataResponse_EvaluatorResponseV2_":{"properties":{"response_code":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Response Code","description":"Machine-readable response code, when provided."},"meta":{"additionalProperties":true,"type":"object","title":"Meta","description":"Additional metadata","default":{}},"data":{"$ref":"#/components/schemas/EvaluatorResponseV2","description":"Data returned by the API service"}},"type":"object","required":["data"],"title":"StackAIAPIDataResponse[EvaluatorResponseV2]"},"EvaluatorResponseV2":{"properties":{"evaluator_id":{"type":"string","format":"uuid","title":"Evaluator Id"},"project_id":{"type":"string","title":"Project Id"},"name":{"type":"string","title":"Name"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"evaluator_type":{"$ref":"#/components/schemas/EvaluatorType"},"version_number":{"type":"integer","title":"Version Number"},"node_contract":{"$ref":"#/components/schemas/EvalNodeContractV2"},"config":{"additionalProperties":true,"type":"object","title":"Config"},"score_kind":{"$ref":"#/components/schemas/EvalScoreKind"},"uses_input":{"type":"boolean","title":"Uses Input"},"uses_expected_output":{"type":"boolean","title":"Uses Expected Output"},"judge_provider":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Judge Provider"},"judge_model_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Judge Model Id"},"created_by":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Created By"},"updated_by":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Updated By"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"}},"type":"object","required":["evaluator_id","project_id","name","description","evaluator_type","version_number","node_contract","config","score_kind","uses_input","uses_expected_output","judge_provider","judge_model_id","created_by","updated_by","created_at","updated_at"],"title":"Evaluator"},"EvaluatorType":{"type":"string","enum":["llm_judge","builtin_rule"],"title":"EvaluatorType","description":"How an evaluator scores: LLM judge or built-in rule."},"EvalNodeContractV2":{"properties":{"input_kind":{"type":"string","enum":["start_node","legacy_input_nodes"],"title":"Input Kind"},"input_keys":{"items":{"type":"string"},"type":"array","title":"Input Keys"},"output_node_ids":{"items":{"type":"string"},"type":"array","title":"Output Node Ids"}},"type":"object","required":["input_kind","input_keys","output_node_ids"],"title":"EvalNodeContract"},"EvalScoreKind":{"type":"string","enum":["numeric","boolean"],"title":"EvalScoreKind","description":"Drives aggregate rendering: mean for numeric, pass-rate for boolean."},"StackAIAPIErrorResponse":{"properties":{"response_code":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Response Code","description":"Machine-readable response code, when provided."},"meta":{"additionalProperties":true,"type":"object","title":"Meta","description":"Additional metadata","default":{}},"errors":{"items":{"$ref":"#/components/schemas/StackAIAPIError"},"type":"array","title":"Errors","description":"List of errors"},"detail":{"items":{"type":"string"},"type":"array","title":"Detail","description":"Human-readable error messages. Use the HTTP status and error metadata to decide how to handle the failure.","readOnly":true}},"type":"object","required":["detail"],"title":"StackAIAPIErrorResponse","description":"Error response model with status code and error list."},"StackAIAPIError":{"properties":{"message":{"type":"string","title":"Message","description":"Message describing the error"}},"type":"object","required":["message"],"title":"StackAIAPIError","description":"Error detail model."}}},"paths":{"/v2/evals/evaluators/{evaluator_id}":{"patch":{"tags":["endpoint-updateEvaluatorV2"],"summary":"Update Evaluator","description":"Update metadata and version material changes to judge configuration.\n\n**How to use**\n\nUpdate metadata or judge configuration. Material config changes create a new immutable version; account for this when comparing historical scores.\n\n**Authentication and permissions**\n\nRequired permissions: `evals.update`. Resource and owner access checks also apply.\n\n**Prepare request.json**\n\nSave 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.\n\n```json\n{\n  \"name\": \"Reviewed evaluator\"\n}\n```","operationId":"updateEvaluatorV2","parameters":[{"name":"evaluator_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Evaluator Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EvaluatorUpdateRequestV2"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/StackAIAPIDataResponse_EvaluatorResponseV2_"}}}},"400":{"description":"Invalid request or pagination cursor","content":{"application/json":{"schema":{"$ref":"#/components/schemas/StackAIAPIErrorResponse"}}}},"401":{"description":"Missing or invalid credentials","content":{"application/json":{"schema":{"$ref":"#/components/schemas/StackAIAPIErrorResponse"}}}},"403":{"description":"Denied permission, project folder access, or API-key scope (meta.required_scope)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/StackAIAPIErrorResponse"}}}},"404":{"description":"Resource not found in the caller's organization","content":{"application/json":{"schema":{"$ref":"#/components/schemas/StackAIAPIErrorResponse"}}}},"409":{"description":"Name conflict, concurrent operation, or dataset state prevents the operation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/StackAIAPIErrorResponse"}}}},"422":{"description":"Invalid evaluation contract, row shape, evaluator configuration, or filter combination","content":{"application/json":{"schema":{"$ref":"#/components/schemas/StackAIAPIErrorResponse"}}}},"4XX":{"description":"Client error returned in the public API envelope","content":{"application/json":{"schema":{"$ref":"#/components/schemas/StackAIAPIErrorResponse"}}}}}}}}}
````


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.stackai.com/stackai-api/rest-api-v2/evaluators-and-previews/patch-v2-evals-evaluators-evaluator_id.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
