---
search:
  tags:
    - V1
    - PUT
seo:
  description: >-
    Attach… Reference for the PUT
    /v1/projects/{projectId}/judges/{judgeId}/versions/{judgeVersionId}/preprocessor-artifact-revision
    endpoint in the Judgeval API.
sidebar:
  label: Set judge version preprocessing artifact
  badge: PUT
title: Set judge version preprocessing artifact
type: openapi-operation
---
Attach an exact saved judge_preprocessor artifact revision from this project to one existing judge version, replace it, or pass null to detach it. Only the selected version changes; optimistic_eval_enabled is unchanged.

`PUT /v1/projects/{projectId}/judges/{judgeId}/versions/{judgeVersionId}/preprocessor-artifact-revision`

**Request body** (`application/json`, required)

- `preprocessor_artifact_revision_id` (string<uuid> | null, required) — The exact saved revision ID; pass null to detach preprocessing

Request body example:

```json
{
  "preprocessor_artifact_revision_id": "41632a42-1d0a-4476-a0c6-52742e0a6267"
}
```

**Responses**

- `200` — Response for status 200

Response example, 200:

```json
{
  "judge_id": "968a8026-4d88-467b-937b-009ebfad94d9",
  "judge_version_id": "85fd0392-86f2-40e7-9e56-5ca06ee20f82",
  "preprocessor_artifact_revision_id": "41632a42-1d0a-4476-a0c6-52742e0a6267",
  "optimistic_eval_enabled": true
}
```
