Admin
Notes
Companies

Update an existing company note

Changed on

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.

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)
  • Auth
    HTTP bearer

Path parameters

company_note_id, integer required

Request body

CompanyNoteUpdate required
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

CompanyNote required
company_id, integer
company_note_id, integer
company_note_type, CompanyNoteType nullable
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
user_id, integer
visibility, 'public' | 'private'

Changes

    • info

      added the new optional request property visibility

    • info

      added the media type application/json for the response with the status

    • info

      added the non-success response with the status

    1 more change in this revision