---
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 — Fraction of production (SDK-logged) items this rule scores, from 0 to 1. Trace rules ignore this value for experiment, playground and optimization traces and score them in full; span and thread rules only ever evaluate SDK-logged data.
  - `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

## Changes

- **2026-08-26** `0739fa5022ca` — 4 warning
  - the `sampling_rate` request property's exclusiveMaximum was set to `false`
  - the `sampling_rate` request property's exclusiveMinimum was set to `false`
  - the `sampling_rate` request property's max was set to `1.00`
  - the `sampling_rate` request property's min was set to `0.00`
- **2026-07-29** `0bfce600211c` — 1 warning, 1 info
  - the `name` request property's maxLength was set to `150`
  - the `name` request property's minLength was decreased from `1` to `0`
- **2026-07-23** `2ad1c641e657` — 1 info
  - added the new optional request property `trigger_scope`

[Change history](https://skmtc.dev/comet-ml/apis/opik-rest-api/changes/v1/private/automations/evaluators/:id/patch.md)

---

[API](https://skmtc.dev/comet-ml/apis/opik-rest-api.md) · [All operations](https://skmtc.dev/comet-ml/apis/opik-rest-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/comet-ml/opik-rest-api/revisions/1a1bcfd67f99/schema)
