---
title: "Set Processor Eval Rubric"
method: PATCH
path: "/api/v1/custom_pipelines/{processor_id}/eval_rubric"
tags: ["Custom Pipelines (Deprecated)"]
---

# Set Processor Eval Rubric

`PATCH /api/v1/custom_pipelines/{processor_id}/eval_rubric`

Link or detach an EvalRubric on a custom processor.

DUAL WRITE (mirrors the generation-agent flow in
custom_processors/tasks.py, where the version's eval_definition and the
processor.eval_rubric_id back-link are always written together): the
execution engine reads ONLY the rubric copy embedded in the ACTIVE
version's eval_definition, so the back-link and that copy must move as one.

- `{"eval_rubric_id": <id>}`: verifies the rubric exists on this team
  (404) and isn't archived (400), then sets processor.eval_rubric_id AND
  mirrors rubric.eval_definition into the active version. Requires a
  completed active version (400 otherwise) — a link without the mirrored
  copy would silently never score.
- `{"eval_rubric_id": null}`: clears processor.eval_rubric_id AND the
  active version's eval_definition. Tolerates a processor with no active
  version (nothing to clear on the version side), so a dangling link is
  always removable.

## Path parameters

- `processor_id` string, required

## Cookies

- `wos-session` string
- `datalab_active_team` string

## Request body

- SetProcessorEvalRubricRequest — Request body for linking/detaching an eval rubric on a custom processor. eval_rubric_id set -> link that rubric (dual write: back-link + mirror the rubric's eval_definition into the ACTIVE version). eval_rubric_id null -> detach (clear the back-link AND the active version's embedded eval_definition).
  - `eval_rubric_id` integer, nullable — EvalRubric ID to link to this processor, or null to detach the current rubric

## Response `200`

Successful Response

- unknown

## Other responses

- `422` — Validation Error

---

[API](https://skmtc.dev/datalab/apis/datalab-api.md) · [All operations](https://skmtc.dev/datalab/apis/datalab-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/datalab/datalab-api/revisions/aa9f8ee18efb/schema)
