> ## 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 the metadata and summary information for a specific user within a memory



## OpenAPI

````yaml post /memory/{id}/user/update
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}/user/update:
    post:
      tags:
        - Memory
      summary: >-
        Update the metadata and summary information for a specific user within a
        memory
      operationId: MemoryController_updateUserMemory
      parameters:
        - name: id
          required: true
          in: path
          schema:
            type: string
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/UpdateUserMemoryDto'
      responses:
        '200':
          description: User memory data updated successfully
        '400':
          description: Bad request
        '401':
          description: Unauthorized
        '500':
          description: Internal server error
      security:
        - apiKey: []
components:
  schemas:
    UpdateUserMemoryDto:
      type: object
      properties:
        phone_number:
          type: string
          description: The phone number of the user to update within the memory.
          example: '+1234567890'
        metadata:
          type: string
          description: >-
            Updated metadata to associate with this user. Can include any
            key-value pairs relevant to your use case.
          example: 25 year old customer from New York, interested in AI solutions
        summary:
          type: string
          description: Updated summary text for this user's interactions.
          example: >-
            The user had previously discussed their startup and had a follow-up
            conversation about AI.
        external_memory_key:
          type: string
          description: >-
            Optional external key for additional memory validation or
            cross-referencing.
          example: external_key_123
      required:
        - phone_number
  securitySchemes:
    apiKey:
      type: apiKey
      in: header
      name: x-api-key
      description: API Key for authentication

````