> ## Documentation Index
> Fetch the complete documentation index at: https://docs.pnbr.io/llms.txt
> Use this file to discover all available pages before exploring further.

# Update a memory



## OpenAPI

````yaml /api-reference/openapi.json patch /v1/memories/{id}
openapi: 3.1.0
info:
  title: Penumbra Platform API
  version: 1.0.0
  description: >-
    The Penumbra /v1 REST surface. Developer-intent nouns (memories, documents,
    submissions, connections, preflight, bridge) over a typed, governed
    knowledge graph. Every write stages through a reviewable delta; verdicts are
    dispositions and findings, never scores.
servers:
  - url: https://pnbr.io
security:
  - bearerAuth: []
tags:
  - name: Memories
    description: Store and recall agent memory as first-class REST.
  - name: Documents
    description: Add and search documents over the source/file substrate.
  - name: Submissions
    description: A generic capture door for app events, forms, and payloads.
  - name: Search
    description: Hybrid, graph, and retrieval search.
  - name: Ontology & Shapes
    description: Read the active ontology, types, and shapes.
  - name: Deltas
    description: 'The governed-write primitive: stage, plan, apply, revert.'
  - name: Graph
    description: >-
      Direct reads of the typed graph: nodes, edges, and counts. Scope:
      graph:read.
  - name: Extraction
    description: Coerce source material into typed entities through a shape.
  - name: Context & Slices
    description: >-
      Author reusable context scopes (slices) and compile them into context. A
      slice is a saved scope; the context verbs act on a scope or a saved slice.
  - name: Preflight
    description: >-
      Read-only decision-quality verdicts: is the graph fit to act on?
      Disposition plus findings, never a score.
  - name: Loops
    description: Bounded agentic extraction and hydration loops over your context.
  - name: Connections
    description: Headless integration connect for token-paste platforms.
  - name: Bridge
    description: Map an external API's type system onto your ontology.
paths:
  /v1/memories/{id}:
    patch:
      tags:
        - Memories
      summary: Update a memory
      operationId: updateMemory
      parameters:
        - name: id
          in: path
          required: true
          schema:
            type: string
      requestBody:
        content:
          application/json:
            schema:
              type: object
              properties:
                content:
                  type: string
                apply:
                  type: boolean
                  default: true
            example:
              content: Buyers stall on procurement and security review.
              project_id: 9142fa4d-7aad-4a1b-8f99-b522fd37518d
      responses:
        '200':
          description: Updated
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/WriteReceipt'
              example:
                id: 92e22e9e-ace5-4f88-9972-a2b099f313b1
                status: applied
                project_id: 9142fa4d-7aad-4a1b-8f99-b522fd37518d
                delta_id: 10249271-7035-41a8-9dea-68369b62f540
                applied: true
                request_id: 3dc8202b-6d37-4f47-bdae-31ee8db76037
components:
  schemas:
    WriteReceipt:
      type: object
      description: >-
        Returned by governed writes. `status` is `applied` (committed) or
        `staged` (apply:false). Descend via `delta_id`.
      properties:
        id:
          type: string
          nullable: true
        status:
          type: string
          enum:
            - applied
            - staged
            - failed
        project_id:
          type: string
        delta_id:
          type: string
        applied:
          type: boolean
        request_id:
          type: string
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: >-
        A `pnbr-` API key. Project-scoped keys make `project_id` implicit;
        org-scoped keys require it.

````