models module route (requires models:registry:write)
POST
/v1/m/models/agent-artifacts
const url = 'https://example.com/v1/m/models/agent-artifacts';const options = { method: 'POST', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '"example"'};
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/agent-artifacts \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '"example"'Registers one agent artifact from the posted document.
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
artifact_class
required
string
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
content_alg
Empty defaults to sha256 when content_hash is non-empty.
string
content_hash
string
id
string
name
required
string
note
string
posture_grade
string
posture_issues
integer format: int64
posture_scanned
boolean
provenance
string
source_ref
string
verified
boolean
version
string
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
{}