Ingest examples
Add up to 1,000 examples to a model. You may provide ground truth during ingest or annotate the example later.
/v1/models/{workspace}/{model}/examplesAuthorization
Send a Modaic bearer token in the Authorization header.
Path Parameters
User or organization workspace slug.
Model repository slug. The caller needs the route-specific repository access.
Body
Between 1 and 1,000 examples.
ExampleInput fields
Caller-assigned ID. A UUID is generated when omitted.
The input state that a decision evaluates.
Optional annotation with required groundTruth, an object keyed by question ID.
When an example is first annotated, Modaic assigns it a stable train or
test split. Later annotation updates preserve that split.
Request example
{
"examples": [
{
"id": "31fcc86c-7f49-4daa-a8b1-577db0c8fe76",
"state": {"ticket": "I was billed twice."},
"annotation": {
"groundTruth": {"needs_refund": true, "priority": "high"}
}
}
]
}
Response
The ingested examples. Each resource includes id, state, source,
imageUrls, annotation, latestDecision, decisionCount, createdAt, and
updatedAt. source is ingest for this endpoint.