OptionalenabledUpdated desired enabled state.
OptionalevaluatorDeprecated single-evaluator alias: updates the first assignment only. Prefer evaluators.
Langfuse resolves the provided evaluator family to its latest version before saving the rule.
A rule's evaluator type cannot be changed: provide name for an evaluator family of the rule's current type. To use a different evaluator type, create a new rule.
OptionalevaluatorsFull replacement of the rule's evaluator assignments: entries that are not listed are detached.
Mutually exclusive with the deprecated evaluator and mapping fields.
OptionalfilterUpdated filter list.
For target=experiment, column=datasetId expects dataset id values from GET /api/public/v2/datasets, not dataset names.
OptionalmappingUpdated LLM-as-judge variable mappings.
Do not send this field for code evaluator rules. Langfuse stores the fixed code runtime mapping automatically and returns it in the response.
OptionalnameUpdated deployment name.
OptionalsamplingUpdated sampling fraction.
OptionaltargetUpdated target object type.
Partial update body for an evaluation rule.
Provide only the fields you want to change. An empty body is rejected.
Practical guidance:
evaluators. It replaces the whole assignment set, so include every evaluator the rule should keep.evaluatorscannot be combined with the deprecatedevaluator/mappingpair, which only ever addressed the first assignment.evaluator, send a freshmappingunless you are certain the existing mapping still matches the prompt variables.targetfor an LLM-as-judge rule, usually send bothfilterandmappingin the same request.mapping; Langfuse stores the fixed code runtime mapping automatically.datasetIdfilter, callGET /api/public/v2/datasetsand use datasetidvalues from that response.