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

Insert examples to offline-test dataset

Append immutable Supabase examples to a v1 offline-test dataset and advance dataset versioning. Trace-typed columns hold trace ids; session-typed columns hold session ids and snapshot their shared trace IDs.

POST/v1/projects/{projectId}/datasets/{datasetIdentifier}/examples
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
datasetIdentifierstringrequired
Request body
requiredapplication/json
examplesobject[]required
min items 1
Responses
200

Response for status 200

example_idsstring[]required
version_addednumberrequired
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 POST 'https://api.judgmentlabs.ai/v1/projects/YOUR_PROJECT_ID/datasets/YOUR_DATASET_IDENTIFIER/examples' \
  -H 'Authorization: Bearer YOUR_API_KEY' \
  -H 'X-Organization-Id: YOUR_ORGANIZATION_ID' \
  -H 'Accept: application/json' \
  -H 'Content-Type: application/json' \
  -d '{
  "examples": [
    {}
  ]
}'
Response
{
  "example_ids": [
    "string"
  ],
  "version_added": 0
}