Hanzo
OpenapiEval

Writes a dataset — the named set of graded examples a run scores a model…

Writes a dataset — the named set of graded examples a run scores a model against — under the caller's org and answers 201 with it.

POST /v1/eval/datasets

Addresshttps://api.hanzo.ai/v1/eval/datasets
MethodPOST
Operationpost_eval_datasets
AuthAuthorization: Bearer $HANZO_API_KEY

Writes a dataset — the named set of graded examples a run scores a model against — under the caller's org and answers 201 with it.

The NAME is the key, not an id: posting a name the org already has updates that dataset's description and metadata and keeps its original creation time, so this is create-or-edit and never a duplicate. Its items are untouched.

Requires a validated principal; 403 without one. The org comes from the validated owner claim, never from a client X-Org-Id, so a dataset can only ever be written under the caller's own tenant. A description over 64 KiB is 400.

Request

4 fields, body application/json (required).

FieldInTypeRequiredDescription
descriptionbodystringDescription is free text about what this set measures; over 64 KiB is refused.
metadatabodyobjectMetadata is a free-form object stored with the set and echoed back verbatim.
metadata.*bodyobject
namebodystringyesName is the dataset's org-unique handle and the segment that will address it, so it must match ^[A-Za-z0-9][A-Za-z0-9._-]{0,63}$.

Response

StatusBodyMeaning
201datasetViewcreated

201 body — 7 fields.

FieldInTypeAlwaysDescription
createdAtbodystringCreatedAt is when the name was first written, kept across later edits.
descriptionbodystringDescription is free text the org wrote about what this set measures.
itemsbodyintegerItems is how many examples the set holds.
metadatabodyobjectMetadata is the free-form object stored with the set, echoed back verbatim.
metadata.*bodyobject
namebodystringName is the dataset's org-unique handle and the segment that addresses it.
updatedAtbodystringUpdatedAt is when the description or metadata last changed.

Failure carries the platform error shape — see Errors.

Examples

hanzo evals datasets create --name <name>

Eval API · All Hanzo APIs · Interactive reference

How is this guide?

On this page