Skip to Content
Judgment Labs

Apply System One Judge opportunity

POST
/v1/projects/{projectId}/judges/system-one-judge-opportunities/apply

Accept one recommendation: attach the assessment's preprocessing script to the judge version, turn on the System One Judge for it, and, when auto_apply_enabled is given, save whether later recommendations for this judge turn on automatically. Fails with 409 if the version already has a preprocessing script and 404 if the recommendation no longer exists.

Authorization

apiKeyAuthorganizationHeader
headerAuthorizationBearer <token>

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

headerX-Organization-Id<token>

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

Path Parameters

projectId*string

Request Body

application/json
  1. body
judge_version_id*string
Formatuuid
assessment_version*integer

The assessment_version of the reviewed recommendation

Range0 <= value
auto_apply_enabled?boolean

Whether later recommendations for this judge's new versions turn on automatically; omit to keep the judge's current setting

Response Body

Response for status 200

application/json
  1. response
judge_version_id*string
Example Request
curl -X POST 'https://api.judgmentlabs.ai/v1/projects/YOUR_PROJECT_ID/judges/system-one-judge-opportunities/apply' \  -H 'Content-Type: application/json' \  -d '{  "judge_version_id": "85fd0392-86f2-40e7-9e56-5ca06ee20f82",  "assessment_version": 0}'
Example Response
{  "judge_version_id": "string"}