Inspect

Update memory

Replace the title, canonical body, discovery summary, and type of an active memory.

Base URL
PATCH
/api/v2/memories/{memory_id}

Replace the title, canonical body, discovery summary, and type of an active memory.

Authorization

bearerAuth memories:write
headerAuthorizationBearer <token>

API key authentication. Use your API key as the bearer token.

Scope: memories:write

Path Parameters

memory_id*string

Request Body

application/json
  1. body
title*Memories.MemoryTitle
Length1 <= length <= 200
content*Memories.MemoryContent

Canonical Markdown body. Directive memories must be at most 2000 characters so they can be injected in full.

Length1 <= length <= 20000
description*Memories.MemoryDescription
Length10 <= length <= 420
memory_type*Memories.MemoryType
Value in"fact""directive"

Response Body

Updated memory

application/json
  1. response
data*
Example Request
curl -X PATCH 'https://app.inspect.com/api/v2/memories/Kq8vN2xLm4pR7tYc3hWzA' \  -H 'Content-Type: application/json' \  -d '{  "title": "Run oxfmt before committing",  "content": "Format changed files with `bun oxfmt` before every commit. Do not use prettier in this repository.",  "description": "Use oxfmt, not prettier, to format files before committing in acme/web.",  "memory_type": "directive"}'
Example Response
{  "data": {    "memory": {      "id": "Kq8vN2xLm4pR7tYc3hWzA",      "title": "Run oxfmt before committing",      "content": "Format changed files with `bun oxfmt` before every commit. Do not use prettier in this repository.",      "description": "Use oxfmt, not prettier, to format files before committing in acme/web.",      "memory_type": "directive",      "archived_at": null,      "archived_reason": null    }  }}