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

# Update customer note

> Updates the text or position of a customer note.



## OpenAPI

````yaml /openapi.yaml patch /v1/customer-notes/{id}
openapi: 3.1.0
info:
  title: Quentli REST API
  version: 1.0.0
  description: OpenAPI spec for Quentli REST endpoints.
servers:
  - url: https://api.quentli.com
    description: Production API
  - url: https://api.staging.quentli.com
    description: Staging API for production-like validation
security:
  - organizationApiKey: []
  - oauthAccessToken: []
tags:
  - name: Auth
  - name: Management
  - name: Billing
  - name: Catalog
  - name: Customers
  - name: Invoices
  - name: Payment Methods
  - name: Payment Sessions
  - name: Payments
  - name: Subscriptions
  - name: Tax Invoices
  - name: Webhooks
  - name: Messaging
paths:
  /v1/customer-notes/{id}:
    patch:
      tags:
        - Customers
      summary: Update customer note
      description: Updates the text or position of a customer note.
      operationId: customer_notes_update
      parameters:
        - schema:
            type: string
            description: Identifier of the customer note.
          required: true
          description: Identifier of the customer note.
          name: id
          in: path
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/UpdateCustomerNoteArgs'
      responses:
        '200':
          description: Customer note updated
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CustomerNotePayload'
        '400':
          description: Invalid request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/UserError'
        '401':
          description: Authentication required
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/UserError'
        '403':
          description: Permission denied
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/UserError'
        '404':
          description: Customer note not found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/UserError'
components:
  schemas:
    UpdateCustomerNoteArgs:
      type: object
      properties:
        input:
          type: object
          properties:
            id:
              type: string
            text:
              type: string
              minLength: 1
            order:
              type: number
          required:
            - id
      required:
        - input
      description: Request body for updating a customer note.
    CustomerNotePayload:
      type: object
      properties:
        note:
          $ref: '#/components/schemas/CustomerNote'
      required:
        - note
      description: The created or updated note.
    UserError:
      type: object
      properties:
        error:
          type: object
          properties:
            message:
              type: string
          required:
            - message
      required:
        - error
      additionalProperties: false
      description: Standard user-facing error response envelope.
    CustomerNote:
      type: object
      properties:
        id:
          type: string
          description: Unique identifier of the note.
          example: cn_1234567890abcdefghij
        createdAt:
          type: string
          format: date-time
          description: When the note was created.
        updatedAt:
          type: string
          format: date-time
          description: When the note was last updated.
        organizationId:
          type: string
          description: Organization that owns the note.
        customerId:
          type: string
          description: Customer the note is about.
        text:
          type: string
          description: Text of the note.
          example: Prometió pagar el viernes.
        order:
          type: number
          description: Sort position; higher is newer.
          example: 3
        createdById:
          type:
            - string
            - 'null'
          description: User who wrote the note.
        updatedById:
          type:
            - string
            - 'null'
          description: User who last edited the note.
      required:
        - id
        - createdAt
        - updatedAt
        - organizationId
        - customerId
        - text
        - order
        - createdById
        - updatedById
      description: An internal note about a customer.
  securitySchemes:
    organizationApiKey:
      type: http
      scheme: bearer
      description: 'Organization API key using `Authorization: Bearer sk_...`.'
    oauthAccessToken:
      type: http
      scheme: bearer
      bearerFormat: OAuth 2.1
      description: 'OAuth access token using `Authorization: Bearer qoa_at_...`.'

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.