---
title: "Create automation rule evaluator"
method: POST
path: "/v1/private/automations/evaluators"
tags: ["Automation rule evaluators"]
---

# Create automation rule evaluator

`POST /v1/private/automations/evaluators`

Create automation rule evaluator

## Request body

- AutomationRuleEvaluatorWrite
  - `project_id` string, uuid — Primary project ID (legacy field for backwards compatibility)
  - `project_ids` string[] — Project IDs for write operations (used when creating/updating rules)
  - `name` string, required
  - `sampling_rate` number, float
  - `enabled` boolean
  - `trigger_scope` 'production' | 'experiment' | 'both' — Controls whether the rule fires on production traces, experiment traces, or both. Defaults to 'production' if omitted.
  - `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', required
  - `action` 'evaluator', required

## Response `201`

Created

---

[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)
