Fetch a judge class
const url = 'https://example.com/v1/judge-classes/example';const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url https://example.com/v1/judge-classes/example \ --header 'Authorization: Bearer <token>'Also returns a retired class (unregisteredAt set): judgments keep naming theirs.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”Judge class id.
Responses
Section titled “Responses”Judge class.
object
The deployment’s own word for the class: “expert”, “user”, “arbitrator”.
How much a judgment of this class counts, relative to the others.
Who may assert the class, as the caller sees it: every part that is set must hold. principalIds is sent only to an admin on the class’s scope; principalCount to everyone who reads it.
object
The caller’s reviewer role is at least this (its token’s, or the roster’s).
Users, service tokens, or both.
Only these principals: user ids, or service token ids. Sent only to an admin on the class’s scope.
How many principals the class is restricted to (principalIds), for every reader. Absent when it names none.
Set when the class was retired.
Example
{ "scope": { "kind": "tenant" }, "assertableBy": { "minReviewerRole": "standard", "principalKinds": [ "user" ] }}Missing / malformed / expired / revoked bearer token.
object
object
Stable machine-readable discriminant. Values match domain error codes (see docs/API-ROUTE-CONVENTIONS.md §4.3).
Optional, kind-specific.
object
Server-assigned request id; also echoed via X-Request-Id header.
Examplegenerated
{ "error": { "code": "example", "message": "example", "details": {}, "requestId": "example" }}No judge class with that id under this tenant.
object
object
Stable machine-readable discriminant. Values match domain error codes (see docs/API-ROUTE-CONVENTIONS.md §4.3).
Optional, kind-specific.
object
Server-assigned request id; also echoed via X-Request-Id header.
Examplegenerated
{ "error": { "code": "example", "message": "example", "details": {}, "requestId": "example" }}