models module route (requires models:registry:write)
POST
/v1/m/models/datasets
const url = 'https://example.com/v1/m/models/datasets';const options = { method: 'POST', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"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}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}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.
Authorizations
Section titled “Authorizations ”Parameters
Section titled “ Parameters ”Header Parameters
Section titled “Header Parameters ” X-Olivares-Tenant
string format: uuid
Target tenant id; required when the principal can act in more than one tenant.
Request Body required
Section titled “Request Body required ” 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
content_alg
Empty defaults to sha256 when content_hash is non-empty.
string
content_hash
string
governance
string
id
string
name
required
string
note
string
owned_ref
string
source_ref
string
verified
boolean
Responses
Section titled “ Responses ”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
{}