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

# Update Long Term Memory Config

> Update long-term memory configuration.

    This endpoint updates the long-term memory configuration at runtime.
    Only the fields you supply are modified; omitted fields retain their
    current values.

    The configuration includes:
    - embedder: The embedder resource to use for creating embeddings
    - reranker: The reranker resource to use for search result reranking
    - vector_graph_store: The database for storing long-term memories
    - enabled: Whether long-term memory is enabled



## OpenAPI

````yaml /openapi.json put /api/v2/config/memory/episodic/long_term
openapi: 3.1.0
info:
  title: MemMachine API
  version: 0.3.10
  description: >-
    Architectural Memory Systems for AI Agents. Specialized in episodic and
    semantic memory management with strict namespace isolation.
servers:
  - url: http://localhost:8080
security: []
tags:
  - name: Configuration
    description: System overview and memory subsystem configuration.
  - name: Episodic Configuration
    description: Per-project episodic memory subsystem configuration.
  - name: Memories
    description: Core operations for episodic and semantic memory ingestion and retrieval.
  - name: Projects
    description: Lifecycle management for isolated memory namespaces.
  - name: Resources
    description: Embedder, language model, and reranker lifecycle management.
  - name: 'Semantic Memory: Categories'
    description: Category, template, and tag management for semantic sets.
  - name: 'Semantic Memory: Features'
    description: Add, retrieve, and update individual semantic features.
  - name: 'Semantic Memory: Sets'
    description: Set type and set ID lifecycle, listing, and configuration.
  - name: System
    description: Infrastructure, health, and observability.
paths:
  /api/v2/config/memory/episodic/long_term:
    put:
      tags:
        - Configuration
      summary: Update Long Term Memory Config
      description: |-
        Update long-term memory configuration.

            This endpoint updates the long-term memory configuration at runtime.
            Only the fields you supply are modified; omitted fields retain their
            current values.

            The configuration includes:
            - embedder: The embedder resource to use for creating embeddings
            - reranker: The reranker resource to use for search result reranking
            - vector_graph_store: The database for storing long-term memories
            - enabled: Whether long-term memory is enabled
      operationId: update_long_term_memory_config
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/UpdateLongTermMemoryConfigSpec'
        required: true
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/UpdateMemoryConfigResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
components:
  schemas:
    UpdateLongTermMemoryConfigSpec:
      properties:
        backend:
          anyOf:
            - type: string
              enum:
                - declarative
                - event
            - type: 'null'
          title: Backend
          description: >-
            Long-term memory backend. Omit/null to keep the existing backend;
            set 'declarative' or 'event' to switch.
        embedder:
          anyOf:
            - type: string
            - type: 'null'
          title: Embedder
          description: |2-

                The ID of the embedder resource to use for long-term memory.
                Must reference an embedder configured in the resources section.
        reranker:
          anyOf:
            - type: string
            - type: 'null'
          title: Reranker
          description: |2-

                The ID of the reranker resource to use for long-term memory search.
                Must reference a reranker configured in the resources section.
        vector_graph_store:
          anyOf:
            - type: string
            - type: 'null'
          title: Vector Graph Store
          description: |2-

                The ID of the vector graph store (database) for storing long-term memories.
                Must reference a database configured in the resources section.
        vector_store:
          anyOf:
            - type: string
            - type: 'null'
          title: Vector Store
          description: VectorStore resource id (event backend only)
        segment_store:
          anyOf:
            - type: string
            - type: 'null'
          title: Segment Store
          description: >-
            SQL engine resource id backing the segment store (event backend
            only)
        properties_schema:
          anyOf:
            - additionalProperties:
                type: string
              type: object
            - type: 'null'
          title: Properties Schema
          description: User-defined filterable properties (event backend only)
        enabled:
          anyOf:
            - type: boolean
            - type: 'null'
          title: Enabled
      type: object
      title: UpdateLongTermMemoryConfigSpec
      description: >-
        Specification for updating long-term memory configuration with enabled
        flag.
    UpdateMemoryConfigResponse:
      properties:
        success:
          type: boolean
          title: Success
          description: |2-

                Whether the operation succeeded.
        message:
          type: string
          title: Message
          description: |2-

                Status message describing the result of the operation.
      type: object
      required:
        - success
        - message
      title: UpdateMemoryConfigResponse
      description: Response model for memory configuration update.
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
      type: object
      required:
        - loc
        - msg
        - type
      title: ValidationError

````