> ## 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 Short Term Memory Config

> Update short-term memory configuration.

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

    The configuration includes:
    - llm_model: The language model to use for summarization
    - message_capacity: Maximum message capacity in characters
    - enabled: Whether short-term memory is enabled



## OpenAPI

````yaml /openapi.json put /api/v2/config/memory/episodic/short_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/short_term:
    put:
      tags:
        - Configuration
      summary: Update Short Term Memory Config
      description: |-
        Update short-term memory configuration.

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

            The configuration includes:
            - llm_model: The language model to use for summarization
            - message_capacity: Maximum message capacity in characters
            - enabled: Whether short-term memory is enabled
      operationId: update_short_term_memory_config
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/UpdateShortTermMemoryConfigSpec'
        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:
    UpdateShortTermMemoryConfigSpec:
      properties:
        llm_model:
          anyOf:
            - type: string
            - type: 'null'
          title: Llm Model
          description: |2-

                The ID of the language model to use for short-term memory summarization.
                Must reference a language model configured in the resources section.
        message_capacity:
          anyOf:
            - type: integer
              exclusiveMinimum: 0
            - type: 'null'
          title: Message Capacity
          description: |2-

                The maximum message capacity for short-term memory, in characters.
                When exceeded, older messages are summarized.
        enabled:
          anyOf:
            - type: boolean
            - type: 'null'
          title: Enabled
      type: object
      title: UpdateShortTermMemoryConfigSpec
      description: >-
        Specification for updating short-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

````