---
title: "Update an existing company note"
method: PATCH
path: "/admin/companies/notes/{company_note_id}"
tags: ["Admin", "Notes", "Companies"]
---

# Update an existing company note

`PATCH /admin/companies/notes/{company_note_id}`

## Request

- Base URL: `https://api.equipmentshare.com` (the document declares no server; this is the origin it was published from)
- URL: `https://api.equipmentshare.com/admin/companies/notes/{company_note_id}`
- Auth: HTTP bearer

Update a note. Only its author may change a private note. Other eligible level 4 users may only pin/unpin public notes. Omitted visibility is preserved; public notes cannot become private. Requires company_note_create.

## Path parameters

- `company_note_id` integer, required

## Request body

- CompanyNoteUpdate
  - `company_note_type_id` integer
  - `is_pinned` boolean, nullable
  - `note_description` string, nullable
  - `note_text` string, nullable
  - `visibility` 'public' | 'private': Omission preserves visibility. Private is allowed only for an already private note.

## Response `200`

- CompanyNote
  - `company_id` integer
  - `company_note_id` integer
  - `company_note_type` CompanyNoteType, nullable
    - `company_note_type_id` integer
    - `name` string
  - `date_created` string, date-time
  - `date_updated` string, date-time, nullable
  - `is_pinned` boolean
  - `note_description` string, nullable
  - `note_text` string, nullable
  - `note_type_id` integer
  - `updated_by` integer, nullable
  - `user` UserNote, nullable
    - `email` string, nullable
    - `first_name` string, nullable
    - `last_name` string, nullable
    - `user_id` integer
  - `user_id` integer
  - `visibility` 'public' | 'private'

## Other responses

- `400`: Public-to-private visibility transition
- `401`: Unauthorized
- `403`: Caller is ineligible, lacks company_note_create, or may not change this note
- `404`: Note not found
- `409`: Integrity constraint violation
- `422`: Invalid request body

## Changes

- **2026-11-23** `3216dc24760a`: 4 info
  - added the new optional request property `visibility`
  - added the media type `application/json` for the response with the status `200`
  - added the non-success response with the status `403`
  - added the non-success response with the status `422`

[Operation history](https://skmtc.dev/equipmentshare/apis/es-api/changes/admin/companies/notes/:company_note_id/patch.md)

---

[API](https://skmtc.dev/equipmentshare/apis/es-api.md) - [All operations](https://skmtc.dev/equipmentshare/apis/es-api/llms.txt) - [OpenAPI document](https://skmtc.dev/equipmentshare/apis/es-api/revisions/40651e1558ac?raw)
