---
title: "Update Automation Rule Evaluator by id"
method: PATCH
path: "/v1/private/automations/evaluators/{id}"
tags: ["Automation rule evaluators"]
---

# Update Automation Rule Evaluator by id

`PATCH /v1/private/automations/evaluators/{id}`

Update Automation Rule Evaluator by id

## Path parameters

- `id` string, uuid, required

## Request body

- AutomationRuleEvaluatorUpdate
  - `name` string, required
  - `sampling_rate` number, float
  - `enabled` boolean
  - `trigger_scope` 'production' | 'experiment' | 'both'
  - `project_id` string, uuid — Primary project ID (legacy field, maintained for backwards compatibility)
  - `project_ids` string[] — Multiple project IDs (new field for multi-project support)
  - `type` 'llm_as_judge' | 'user_defined_metric_python' | 'trace_thread_llm_as_judge' | 'trace_thread_user_defined_metric_python' | 'span_llm_as_judge' | 'span_user_defined_metric_python'
  - `action` 'evaluator', required

## Response `204`

No content

---

[API](https://skmtc.net/comet-ml/apis/opik-rest-api.md) · [All operations](https://skmtc.net/comet-ml/apis/opik-rest-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/comet-ml/opik-rest-api/versions/4ed2fbc97cc3/schema)
