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

# Update a note

> Update a specific note for a WhatsApp contact



## OpenAPI

````yaml api/legacy/openapi-whatsapp.yaml patch /whatsapp_contacts/{identifier}/notes/{note_id}
openapi: 3.0.3
info:
  title: Kapso External API - WhatsApp API
  description: >-
    API for programmatically interacting with Kapso agents, executions, and
    WhatsApp conversations. This specification includes only WhatsApp API
    endpoints.
  version: 1.0.0
  contact:
    name: Kapso Support
servers:
  - url: https://app.kapso.ai/api/v1
    description: Production server
security:
  - ApiKeyAuth: []
paths:
  /whatsapp_contacts/{identifier}/notes/{note_id}:
    patch:
      tags:
        - WhatsApp Contact Notes
      summary: Update a note
      description: Update a specific note for a WhatsApp contact
      operationId: updateWhatsappContactNote
      parameters:
        - name: identifier
          in: path
          required: true
          description: Contact ID (UUID) or phone number
          schema:
            type: string
            example: contact-789ghi or 1234567890
        - name: note_id
          in: path
          required: true
          description: Note ID
          schema:
            type: string
            format: uuid
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                note:
                  type: object
                  properties:
                    name:
                      type: string
                      description: Optional name for the note
                    content:
                      type: string
                      description: The content of the note
                    metadata:
                      type: object
                      description: Additional metadata
      responses:
        '200':
          description: Successful response
          content:
            application/json:
              schema:
                type: object
                properties:
                  data:
                    $ref: '#/components/schemas/WhatsappContactNote'
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '404':
          description: Contact or note not found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '422':
          description: Validation error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      security:
        - ApiKeyAuth: []
components:
  schemas:
    WhatsappContactNote:
      type: object
      properties:
        id:
          type: string
          format: uuid
          example: note-123abc
        name:
          type: string
          nullable: true
          example: Customer Preference
          description: Optional name for the note
        content:
          type: string
          example: Prefers morning deliveries between 9-11 AM
          description: The content of the note
        metadata:
          type: object
          description: Additional metadata about the note
        created_at:
          type: string
          format: date-time
        updated_at:
          type: string
          format: date-time
    Error:
      type: object
      properties:
        error:
          type: string
          example: Resource not found
        status:
          type: integer
          example: 404
        message:
          type: string
          example: The requested resource could not be found
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: X-API-Key
      description: API key required for all endpoints

````