Skip to content
Judgment Labs
Esc
↑↓navigate↵open⌘Jpreview

Set judge version preprocessing artifact

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
Authorization
AuthorizationPersonal API key · headerrequired

Your personal API key from Settings > Personal API Keys, sent as Bearer <key>.

X-Organization-IdOrganization ID · headerrequired

The organization to act in. Copy it with Copy organization ID in the organization menu or the settings sidebar.

Path parameters
projectIdstringrequired
judgeIdstring<uuid>required
matches ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$
judgeVersionIdstring<uuid>required
matches ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$
Request body
requiredapplication/json
preprocessor_artifact_revision_idstring<uuid> | nullrequired

The exact saved revision ID; pass null to detach preprocessing

Show properties
Any of:
string<uuid>
string<uuid>
null
null
Responses
200

Response for status 200

judge_idstring<uuid>required
matches ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$
judge_version_idstring<uuid>required
matches ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$
preprocessor_artifact_revision_idstring<uuid> | nullrequired
Show properties
Any of:
string<uuid>
string<uuid>
null
null
optimistic_eval_enabledbooleanrequired
Try it
Server
Authorization
Parameters
Bodyapplication/json
Request
curl -X PUT 'https://api.judgmentlabs.ai/v1/projects/YOUR_PROJECT_ID/judges/YOUR_JUDGE_ID/versions/YOUR_JUDGE_VERSION_ID/preprocessor-artifact-revision' \
  -H 'Authorization: Bearer YOUR_API_KEY' \
  -H 'X-Organization-Id: YOUR_ORGANIZATION_ID' \
  -H 'Accept: application/json' \
  -H 'Content-Type: application/json' \
  -d '{
  "preprocessor_artifact_revision_id": "41632a42-1d0a-4476-a0c6-52742e0a6267"
}'
Response
{
  "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
}

Was this page helpful?