Update a memory

⚠️
Preview — this feature is being built; the design below is the spec.
PATCH https://app.syntic.ai/v1/memory_stores/{store_id}/memories/{memory_id}

Correct a memory’s text, tags or expiry. The memory keeps its id and source; updated_at changes.

For how this fits into a full workflow, see Memory stores.

Headers

HeaderRequiredValue
AuthorizationYesBearer <key>: a private inference key (sk_live_...). See Authentication.
syntic-betaYes, while in previewagents-2026-11-01. Without it the call fails with 400 beta_required. See Versioning.
Content-TypeYesapplication/json

Path parameters

ParameterTypeDescription
store_idstringThe memory store id, starting with mem_.
memory_idstringThe memory id, starting with mmr_.

Body parameters

ParameterTypeRequiredNotes
contentstringNoNew text.
tagsarray of stringsNoReplaces the tags.
expires_atstring or nullNonull keeps it forever.

Response

200 OK, Content-Type: application/json

{
  "id": "mmr_01JC8D1F3H5K7M9P1R3T",
  "store_id": "mem_01JC1A3C5E7G9J1L3N5Q",
  "scope": "customer:4821",
  "content": "Prefers replies by email. Bulk discount agreed at 8% from November 2026.",
  "tags": [
    "preference"
  ],
  "source": {
    "kind": "agent",
    "session_id": "sesn_01JC7M2K4P6R8T0V2X4Z",
    "agent_id": "agt_01JC4R8W6Q2N9X3T5V7Y"
  },
  "created_at": "2026-11-05T10:00:15Z",
  "updated_at": "2026-11-09T14:00:00Z",
  "expires_at": "2027-11-05T10:00:15Z"
}

Examples

curl -sS -X PATCH https://app.syntic.ai/v1/memory_stores/mem_01JC1A3C5E7G9J1L3N5Q/memories/mmr_01JC8D1F3H5K7M9P1R3T \
  -H "Authorization: Bearer $SYNTIC_API_KEY" \
  -H "syntic-beta: agents-2026-11-01" \
  -H "Content-Type: application/json" \
  -d '{
      "content": "Prefers replies by email. Bulk discount agreed at 8% from November 2026."
    }'

Errors

Errors use the error envelope and carry a request_id. Codes specific to this operation:

StatustypecodeWhen
400invalid_request_errorbeta_requiredThe syntic-beta header is missing.
400invalid_request_errorcontent_too_longOver 4,000 characters.
404not_found_errormemory_store_not_foundNo store with that id in this workspace.
404not_found_errormemory_not_foundNo memory with that id in the store.
401authentication_errorinvalid_api_keyThe key is missing, unknown, revoked or expired.
429rate_limit_errorrate_limitedToo many requests; wait for Retry-After. See Rate-limit headers.
Was this page helpful?