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

# Updates an account note



## OpenAPI

````yaml put /v1/accounts/notes/{noteId}
openapi: 3.0.0
info:
  title: Thena Platform
  description: The Thena Platform API description
  version: 1.0.0
  contact: {}
servers:
  - url: https://platform.thena.ai
    description: Platform
  - url: http://localhost:8000
    description: Local
security:
  - ApiKey: []
tags: []
paths:
  /v1/accounts/notes/{noteId}:
    put:
      tags:
        - Accounts
      summary: Update an account note
      parameters:
        - name: noteId
          required: true
          in: path
          schema:
            type: string
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/UpdateAccountNoteDto'
      responses:
        '200':
          description: Operation successful
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AccountNoteResponseDto'
        '400':
          description: Note ID is required
          content:
            application/json:
              example:
                statusCode: 400
                message: Note ID is required!
                error: Bad Request
        '404':
          description: Account note not found
          content:
            application/json:
              example:
                statusCode: 404
                message: Account note not found
                error: Not Found
        '500':
          description: Internal server error
          content:
            application/json:
              example:
                statusCode: 500
                message: Something went wrong!
                error: Internal Server Error
components:
  schemas:
    UpdateAccountNoteDto:
      type: object
      properties:
        content:
          type: string
          description: The content of the note
          example: This is a note
        type:
          type: string
          description: The identifier / value of the type attribute of the note
          example: T123
        visibility:
          type: string
          description: The visibility of the note
          example: private
        attachmentUrls:
          description: The URLs of the attachments to attach to the note
          example:
            - https://example.com/attachment1.jpg
            - https://example.com/attachment2.jpg
          type: array
          items:
            type: string
        metadata:
          type: object
          description: The metadata of the note
          example: {}
    AccountNoteResponseDto:
      type: object
      properties:
        id:
          type: string
          description: The identifier of the activity
        accountId:
          type: string
          description: The identifier of the account
        account:
          type: string
          description: The name of the account
        content:
          type: string
          description: The content of the note
        type:
          type: string
          description: The type of the note
        typeId:
          type: string
          description: The identifier of the type attribute
        typeConfiguration:
          type: object
          description: The configuration of the type
        visibility:
          type: string
          description: The visibility of the note
        attachments:
          description: The attachments of the note
          type: array
          items:
            type: string
        author:
          type: string
          description: The name of the author
        authorId:
          type: string
          description: The identifier of the author
        authorEmail:
          type: string
          description: The email of the author
        createdAt:
          type: string
          description: The timestamp of the note
        updatedAt:
          type: string
          description: The last updated timestamp of the note
        metadata:
          type: object
          description: The metadata of the note
      required:
        - id
        - accountId
        - account
        - content
        - type
        - typeId
        - typeConfiguration
        - visibility
        - attachments
        - author
        - authorId
        - authorEmail
        - createdAt
        - updatedAt
        - metadata
  securitySchemes:
    ApiKey:
      type: apiKey
      in: header
      name: x-api-key
      description: 'Enter your API key '

````