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

Apply test run pass-condition successes

Applies client-computed pass-condition results to stored test item rows: each matched ClickHouse row is re-inserted with the new success value and all other columns preserved.

PATCH/v1/projects/{projectId}/test-runs/{testRunId}/success
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
testRunIdstringrequired
Request body
requiredapplication/json
successesobject[]required
min items 1
Show properties
Array of object
evaluation_run_idstringrequired
successboolean | nullrequired
Show properties
Any of:
boolean
boolean
null
null
Responses
200

Response for status 200

updatednumberrequired
404

Response for status 404

errorstringrequired
messagestring
codestring
detailsstring[]
422

Response for status 422

errorstringrequired
messagestring
codestring
detailsstring[]
Try it
Server
Authorization
Parameters
Bodyapplication/json
Request
curl -X PATCH 'https://api.judgmentlabs.ai/v1/projects/YOUR_PROJECT_ID/test-runs/YOUR_TEST_RUN_ID/success' \
  -H 'Authorization: Bearer YOUR_API_KEY' \
  -H 'X-Organization-Id: YOUR_ORGANIZATION_ID' \
  -H 'Accept: application/json' \
  -H 'Content-Type: application/json' \
  -d '{
  "successes": [
    {
      "evaluation_run_id": "string",
      "success": true
    }
  ]
}'
Response
{
  "updated": 0
}

Was this page helpful?