SmartMemory
PATCH
/memory/tenant/settings

Merge-patch the caller tenant's defaults (tenant admin, non-humans may only tighten).

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

Header Parameters

If-Match?string|null

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

A JSON merge-patch of stated blocks: an absent knob is unchanged, null restores inheritance.

Response Body

application/json

application/json

curl -X PATCH "https://example.com/memory/tenant/settings" \  -H "Content-Type: application/json" \  -d '{    "stated": {      "property1": {},      "property2": {}    }  }'
{
  "scope": "string",
  "scope_id": "string",
  "version": 0,
  "stated": {
    "property1": {},
    "property2": {}
  },
  "effective": {
    "property1": {},
    "property2": {}
  },
  "source": {
    "property1": {},
    "property2": {}
  },
  "read_only": {}
}
{
  "detail": [
    {
      "loc": [
        "string"
      ],
      "msg": "string",
      "type": "string",
      "input": null,
      "ctx": {}
    }
  ]
}