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

# Update a Note

> Updates the content of an existing note. Only the original author may edit a note.

Updates the content of an existing note.

<Note>
  Only the **original author** may edit a note.
</Note>

### Path Parameters

* **id** (*required*, string): Note ID, from [List Notes](/api-reference/endpoint/list-notes).

### Request Body

| Field     | Type   | Required | Max Length | Description                                                                              |
| --------- | ------ | -------- | ---------- | ---------------------------------------------------------------------------------------- |
| `content` | string | Yes      | 10,000     | Updated plain text content of the note                                                   |
| `user_id` | string | Yes      | —          | ID of the team member performing the update. Must match the original author of the note. |

### Example Request

```json theme={null}
{
  "content": "Updated: confirmed budget approved for Q3.",
  "user_id": "507f1f77bcf86cd799439033"
}
```

### Response (200)

Returns the updated [note object](/api-reference/endpoint/list-notes#note-object).

### Errors

| Status | Description                        |
| ------ | ---------------------------------- |
| 403    | Only the author can edit this note |
| 404    | Note not found                     |


## OpenAPI

````yaml PATCH /v2/notes/{id}
openapi: 3.0.1
info:
  title: Salesfinity API
  description: API documentation for Salesfinity platform
  license:
    name: MIT
  version: 1.0.0
servers:
  - url: https://client-api.salesfinity.co
security:
  - ApiKeyAuth: []
paths:
  /v2/notes/{id}:
    patch:
      tags:
        - Notes
      summary: Update note content
      description: >-
        Updates the content of an existing note. Only the original author may
        edit a note.
      operationId: update-note
      parameters:
        - name: id
          in: path
          required: true
          schema:
            type: string
          description: Note ID
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/UpdateNoteDTO'
      responses:
        '200':
          description: Note updated successfully
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/NoteDTO'
        '403':
          description: Only the author can edit this note
        '404':
          description: Note not found
components:
  schemas:
    UpdateNoteDTO:
      type: object
      required:
        - content
        - user_id
      properties:
        content:
          type: string
          maxLength: 10000
          description: Updated plain text content of the note
          example: Updated note content
        user_id:
          type: string
          description: >-
            ID of the team member performing the update. Must match the original
            author of the note.
          example: 507f1f77bcf86cd799439011
    NoteDTO:
      type: object
      properties:
        _id:
          type: string
          example: 507f1f77bcf86cd799439011
        team:
          type: string
          example: 507f1f77bcf86cd799439012
        author:
          allOf:
            - $ref: '#/components/schemas/NoteAuthorDTO'
          description: >-
            Note author. Populated when available; otherwise just the user ID
            under _id.
        content:
          type: string
          description: Plain text content of the note
        is_pinned:
          type: boolean
          description: Whether this note is pinned to the top
        pinned_at:
          type: string
          format: date-time
          nullable: true
        pinned_by:
          type: string
          nullable: true
        contact:
          type: string
          nullable: true
          description: Contact this note is attached to (mutually exclusive with company)
        company:
          type: string
          nullable: true
          description: Company this note is attached to (mutually exclusive with contact)
        createdAt:
          type: string
          format: date-time
        updatedAt:
          type: string
          format: date-time
    NoteAuthorDTO:
      type: object
      properties:
        _id:
          type: string
          example: 507f1f77bcf86cd799439011
        first_name:
          type: string
        last_name:
          type: string
        email:
          type: string
        image:
          type: string
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: x-api-key

````