Annotate example
Add or update an example's ground truth. At least one annotation
field is required. The first annotation must include groundTruth. Example IDs
are globally unique, so no model selector is required.
/v1/examples/{exampleId}/annotationAuthorization
Send a Modaic bearer token in the Authorization header.
Path Parameters
Example ID.
Body
Expected answers keyed by question ID. noul questions use booleans,
choice questions use option keys, and score questions use zero-based
numeric indexes into the question's criteria array.
The first annotation assigns a stable train or test split. Updating the
annotation later preserves the existing split.
Returns 404 example_not_found when the example does not exist or the caller
cannot write to its model repository, and 422 ground_truth_required when the
first annotation omits groundTruth.
Response
The merged ground truth with the preserved split.