v52

OpenAPI 3.1.0Apache 2.0raw.githubusercontent.com2026-08-03308532588.7 KB
Automation rule evaluators

Create automation rule evaluator

Create automation rule evaluator

post/v1/private/automations/evaluators

Request body

project_idstring uuid

Primary project ID (legacy field for backwards compatibility)

project_idsstring[]

Project IDs for write operations (used when creating/updating rules)

namestring required
sampling_ratenumber float
enabledboolean
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

Created