Update memory
Replace the title, canonical body, discovery summary, and type of an active memory.
Base URL
PATCH
Replace the title, canonical body, discovery summary, and type of an active memory.
bearerAuth memories:writeheader
AuthorizationBearer <token>API key authentication. Use your API key as the bearer token.
Scope: memories:write
memory_id*stringapplication/json- body
title*Memories.MemoryTitleLength
1 <= length <= 200content*Memories.MemoryContentCanonical Markdown body. Directive memories must be at most 2000 characters so they can be injected in full.
Length
1 <= length <= 20000description*Memories.MemoryDescriptionLength
10 <= length <= 420memory_type*Memories.MemoryTypeValue in
"fact""directive"Updated memory
application/json- response
data*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 } }}