Import OntologyIR data to seed or migrate the ontology.
Accepts a dict with OntologyIR format. Creates entity types and patterns.
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
application/json
curl -X POST "https://example.com/memory/ontology/import" \ -H "Content-Type: application/json" \ -d '{}'null{
"detail": [
{
"loc": [
"string"
],
"msg": "string",
"type": "string",
"input": null,
"ctx": {}
}
]
}Import Okf Bundle
Import an OKF bundle into the caller's workspace without re-ingestion. v0.2 imports are deliberately staged: validate all declaration conflicts, create active declarations, add items, then restore retired/superseded class state. A conflict returns before the first declaration or item write.
Import Registry Snapshot
Import data into a registry. Requires authentication and validates registry ownership.