SmartMemory
POST
/memory/ontology/import

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": {}
    }
  ]
}