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

# Update Memory

> Update specific fields of an existing memory blob. Requires user's ID and Memory Key. Only include fields to be modified in the request body.

Update specific fields of an existing memory blob. Requires the user's ID and Memory Key for verification and potential re-encryption.

Only include fields in the request body that you wish to modify. Sending a `tags` array replaces the existing tags entirely.

### Authorization

Requires `Bearer` token authentication using your Developer JWT.


## OpenAPI

````yaml PATCH /memory-blobs/{blobId}
openapi: 3.0.3
info:
  title: Memoram API v1
  description: >-
    API for interacting with the Memoram platform, managing access, memories,
    and tags.
  version: 1.0.0
  contact:
    name: Memoram Support
    url: https://memoram.app
    email: support@memoram.app
servers:
  - url: https://api.memoram.app/api/v1
    description: Production Server
security: []
tags:
  - name: Access Management
    description: >-
      Endpoints for obtaining authentication tokens and managing access requests
      to user memories.
  - name: Memory Management
    description: >-
      Endpoints for creating, retrieving, updating, and deleting user memory
      blobs.
  - name: Memory Tag Management
    description: Endpoints for retrieving memory tags.
paths:
  /memory-blobs/{blobId}:
    patch:
      tags:
        - Memory Management
      summary: Update Memory
      description: >-
        Update specific fields of an existing memory blob. Requires user's ID
        and Memory Key. Only include fields to be modified in the request body.
      parameters:
        - name: blobId
          in: path
          required: true
          description: The unique ID of the memory blob to update.
          schema:
            type: string
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/UpdateMemoryRequest'
      responses:
        '200':
          description: Memory blob updated successfully.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/MemoryBlobResponse'
        '400':
          description: Bad Request - Invalid data in request body.
        '401':
          description: Unauthorized - Invalid or expired JWT.
        '403':
          description: >-
            Forbidden - Memory blob does not belong to the user or developer
            lacks write access.
        '404':
          description: Not Found - Memory blob with the specified ID not found.
      security:
        - bearerAuth: []
components:
  schemas:
    UpdateMemoryRequest:
      type: object
      required:
        - user_id
        - memoryKey
      description: Only include fields you wish to update.
      properties:
        user_id:
          type: string
          format: uuid
          description: User's unique ID (required for identification).
        memoryKey:
          type: string
          description: User's memory key (required for verification/encryption).
        content:
          type: string
          description: New memory content (plaintext or pre-encrypted).
        title:
          type: string
        summary:
          type: string
        tags:
          type: array
          items:
            type: string
          description: Replaces existing tags entirely with this list.
        importance:
          type: number
          format: float
        confidence:
          type: number
          format: float
        source:
          type: string
    MemoryBlobResponse:
      type: object
      description: >-
        Represents a memory blob as returned by Create/Update operations
        (content is not included).
      properties:
        id:
          type: string
        user_id:
          type: string
          format: uuid
        created_at:
          type: string
          format: date-time
        updated_at:
          type: string
          format: date-time
        source:
          type: string
        title:
          type: string
        summary:
          type: string
        importance:
          type: number
          format: float
        confidence:
          type: number
          format: float
        tags:
          type: array
          items:
            type: string
        tag_ids:
          type: array
          items:
            type: string
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT
      description: JWT token obtained via `/auth/token` endpoint.

````