SmartMemory
POST
/memory/okf/import

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.

Request Body

multipart/form-data

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/json

curl -X POST "https://example.com/memory/okf/import" \  -F file="string"
{}
{
  "detail": [
    {
      "loc": [
        "string"
      ],
      "msg": "string",
      "type": "string",
      "input": null,
      "ctx": {}
    }
  ]
}