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

# Update memory name



## OpenAPI

````yaml patch /memory/{id}
openapi: 3.0.0
info:
  title: ClearTalk API
  description: The ClearTalk API Documentation
  version: '1.0'
  contact:
    name: Developer Support
    email: devsupport@cleartalk.ai
servers:
  - url: https://api.cleartalk.ai
    description: ClearTalk AI API Server
security: []
tags: []
paths:
  /memory/{id}:
    patch:
      tags:
        - Memory
      summary: Update memory name
      operationId: MemoryController_update
      parameters:
        - name: id
          required: true
          in: path
          schema:
            type: string
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/UpdateMemoryDto'
      responses:
        '200':
          description: Memory updated successfully
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Memory'
        '400':
          description: Bad request
        '401':
          description: Unauthorized
        '404':
          description: Memory not found
        '500':
          description: Internal server error
      security:
        - apiKey: []
components:
  schemas:
    UpdateMemoryDto:
      type: object
      properties:
        name:
          type: string
          description: The new name for the memory. Cannot be null or undefined.
          example: Updated Customer Support Memory
    Memory:
      type: object
      properties:
        id:
          type: string
          description: Unique identifier for the memory
          example: '1'
        name:
          type: string
          description: Name of the memory
          example: Customer Support Memory
        created_at:
          type: string
          description: ISO timestamp when the memory was created
          example: '2024-01-01T00:00:00.000Z'
        user_id:
          type: string
          description: Unique identifier for the user who owns the memory
          example: '1'
        memory_duration:
          type: object
          description: Duration setting for the memory (null indicates no duration limit)
          example: null
        uuid:
          type: string
          description: UUID of the memory
          example: 550e8400-e29b-41d4-a716-446655440000
        memory_cleartalk_id:
          type: string
          description: cleartalk memory ID
          example: cleartalk_memory_123
        cleartalk_user_id:
          type: string
          description: cleartalk user ID
          example: cleartalk_user_123
      required:
        - id
        - name
        - created_at
        - user_id
        - memory_duration
        - uuid
        - memory_cleartalk_id
        - cleartalk_user_id
  securitySchemes:
    apiKey:
      type: apiKey
      in: header
      name: x-api-key
      description: API Key for authentication

````