Skip to content

models module route (requires models:registry:write)

POST
/v1/m/models/datasets
curl --request POST \
--url https://example.com/v1/m/models/datasets \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{ "attested_at": "example", "attested_by": "example", "classification": "", "content_alg": "example", "content_hash": "example", "governance": "example", "id": "example", "name": "example", "note": "example", "owned_ref": "example", "source_ref": "example", "verified": true }'

Registers one dataset; an owned_ref, when set, must resolve.

X-Olivares-Tenant
string format: uuid

Target tenant id; required when the principal can act in more than one tenant.

Media type application/json
object
attested_at

Accepted by the reused DTO; the server timestamp is authoritative.

string
attested_by

Accepted by the reused DTO; the authenticated actor is authoritative.

string
classification
string
default: other
Allowed values: "" public internal confidential restricted pii other
content_alg

Empty defaults to sha256 when content_hash is non-empty.

string
content_hash
string
governance
string
id
string
name
required
string
>= 1 characters /\S/
note
string
owned_ref
string
source_ref
string
verified
boolean

OK

Media type application/json
object
Example generated
{}

Bad request

Media type application/json
object
Example generated
{}

Unauthenticated

Media type application/json
object
Example generated
{}

Forbidden

Media type application/json
object
Example generated
{}

Not found

Media type application/json
object
Example generated
{}

Conflict / setup required

Media type application/json
object
Example generated
{}

Rate limited

Media type application/json
object
Example generated
{}