v37

latestOpenAPI 3.1.0raw.githubusercontent.com2026-06-1170194628.0 KB
v1
Memory

Update Memory V1

Update an existing memory item by ID.

**Authentication Required**:
One of the following authentication methods must be used:
- Bearer token in `Authorization` header
- API Key in `X-API-Key` header
- Session token in `X-Session-Token` header

**Required Headers**:
- Content-Type: application/json
- X-Client-Type: (e.g., 'papr_plugin', 'browser_extension')

The API validates content size against MAX_CONTENT_LENGTH environment variable (defaults to 15000 bytes).
put/v1/memory/{memory_id}

Path parameters

memory_idstring required

Query parameters

enable_holographicboolean

If True, re-processes holographic neural transforms after content update

If True, re-processes holographic neural transforms after content update

frequency_schema_idstring nullable

Frequency schema for holographic embedding (e.g. 'cosqa', 'scifact').

Frequency schema for holographic embedding (e.g. 'cosqa', 'scifact').

Request body

contentstring nullable

The new content of the memory item

type'text' | 'code_snippet' | 'document'

Valid memory types

organization_idstring nullable

Optional organization ID for multi-tenant memory scoping. When provided, update is scoped to memories within this organization.

namespace_idstring nullable

Optional namespace ID for multi-tenant memory scoping. When provided, update is scoped to memories within this namespace.

Example request

{
  "content": "Updated meeting notes from the product planning session",
  "context": [
    {
      "content": "Let's update the Q2 product roadmap",
      "role": "user"
    },
    {
      "content": "I'll help you update the roadmap. What changes would you like to make?",
      "role": "assistant"
    }
  ],
  "metadata": {
    "emoji tags": "📊,💡,📝,✨",
    "emotion tags": "focused, productive, satisfied",
    "hierarchical structures": "Business/Planning/Product/Updates",
    "topics": "product, planning, updates"
  },
  "relationships_json": [
    {
      "metadata": {
        "relevance": "high"
      },
      "related_item_id": "previous_memory_item_id",
      "related_item_type": "TextMemoryItem",
      "relation_type": "updates"
    }
  ],
  "type": "text"
}

Response

Memory successfully updated

codeinteger

HTTP status code

statusstring

'success' or 'error'

errorstring nullable

Error message if failed

{"stackTrail":"components:schemas:UpdateMemoryResponse:properties:details:anyOf","oasType":"schema","type":"unknown","title":"Details","description":"Additional error details or context","nullable":true}
messagestring nullable

Status message