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

# Update a note

> Updates the title and/or content of an existing note. Only the fields supplied are changed. Only internal users with access to the note's entity can update it.



## OpenAPI

````yaml /api-reference/openapi.json patch /v1/notes/{id}
openapi: 3.0.0
info:
  contact: {}
  title: Assembly API
  version: 0.0.1
servers:
  - url: https://api.assembly.com
security: []
paths:
  /v1/notes/{id}:
    patch:
      tags:
        - Notes
      summary: Update a note
      description: >-
        Updates the title and/or content of an existing note. Only the fields
        supplied are changed. Only internal users with access to the note's
        entity can update it.
      operationId: update-note
      parameters:
        - description: Note ID
          in: path
          name: id
          required: true
          schema:
            type: string
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/internal_notes.UpdateNoteInput'
        description: Fields to update
        required: true
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/internal_notes.Note'
          description: OK
        '400':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/dispatcher.Error'
          description: Invalid request body, empty title, or content too long
        '401':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/dispatcher.Error'
          description: Missing or invalid API key, or caller lacks access to the note
        '404':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/dispatcher.Error'
          description: Note not found
        '500':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/dispatcher.Error'
          description: Unexpected server error
      security:
        - APIKeyHeader: []
components:
  schemas:
    internal_notes.UpdateNoteInput:
      properties:
        content:
          description: Content is the new body for the note.
          example: Revised the rollout timeline after the kickoff call.
          type: string
        title:
          description: Title is the new heading for the note.
          example: Updated onboarding summary
          type: string
      type: object
    internal_notes.Note:
      properties:
        content:
          description: Content is the body of the note.
          example: Discussed the rollout timeline and next steps.
          type: string
        createdAt:
          type: string
        creatorId:
          description: >-
            CreatorId is the ID of the internal user who created the note.

            TODO(@foley): Let's remove this and use CreatedBy from Model, we'll
            need
                          to do some backward compatibility work for the platform API.
          example: 7b1c5d9e-2f34-4a8b-9c0d-1e2f3a4b5c6d
          type: string
        data:
          type: string
        entityId:
          description: >-
            ForeignKeyId is the ID of the client or company the note is attached
            to.
          example: f47ac10b-58cc-4372-a567-0e02b2c3d479
          type: string
        entityType:
          description: ForeignKeyType is the kind of entity the note is attached to.
          enum:
            - client
            - company
          example: client
          type: string
        id:
          type: string
        identityId:
          type: string
        object:
          type: string
        portalId:
          description: PortalID is the workspace the note belongs to.
          example: a1b2c3d4-5678-90ab-cdef-1234567890ab
          type: string
        previousAttributes:
          additionalProperties: true
          type: object
        ref:
          type: string
        title:
          description: Title is the short heading of the note.
          example: Onboarding call summary
          type: string
        updatedAt:
          type: string
      type: object
    dispatcher.Error:
      properties:
        code:
          type: string
        data: {}
        message:
          type: string
      type: object
  securitySchemes:
    APIKeyHeader:
      in: header
      name: X-API-KEY
      type: apiKey

````