Notes
Companies

Create a new company note

Changed on

Creates a public company note with the existing administrator authorization checks. Private creation is rejected.

post/company-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

CompanyNoteCreationValidation required
company_id, integer required
is_pinned, boolean
note_description, string nullable
note_text, string nullable
note_type_id, integer required
visibility, 'public'

Creation supports public visibility only.

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

    • breaking

      added required request body

    • info

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

    • info

      added the non-success response with the status