SmartMemory
POST
/memory/{item_id}/supersede

Create a bitemporal replacement for an accessible memory item.

Authorization

AuthorizationBearer <token>

Send Authorization: Bearer <token>. The token is either a Clerk session JWT or a SmartMemory API key (prefix sm_live_, sm_test_, or legacy sk_).

In: header

Path Parameters

item_id*Item Id

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Append a replacement while retaining the prior item's history.

Inherited valid_from is an ISO datetime (naive means UTC). Core sets the replacement's start and predecessor's end in one compensated write. Scope ownership comes from credentials. Site rollouts use scope_go_lives.

Response Body

application/json

application/json

application/json

application/json

application/json

curl -X POST "https://example.com/memory/string/supersede" \  -H "Content-Type: application/json" \  -d '{    "content": "string",    "memory_type": "string",    "reason": "string"  }'
{
  "status": "scheduled",
  "old_item_id": "string",
  "new_item_id": "string",
  "scope_go_lives": [
    {}
  ],
  "recorded_at": "2019-08-24T14:15:22Z"
}
{
  "detail": {
    "code": "invalid_scoped_validity",
    "message": "string",
    "retryable": false
  }
}
{
  "detail": {
    "code": "invalid_scoped_validity",
    "message": "string",
    "retryable": false
  }
}
{
  "detail": [
    {
      "loc": [
        "string"
      ],
      "msg": "string",
      "type": "string",
      "input": null,
      "ctx": {}
    }
  ]
}
{
  "detail": {
    "code": "invalid_scoped_validity",
    "message": "string",
    "retryable": false
  }
}