API reference
All operations
NOTE

Updates an existing note (full replace).

Send the note's ID both in the URL and as NoteId in the body. If the two differ, the request is rejected with 400 and nothing is changed. This is a full replace: RecordType, RecordId, TypeId, NoteDate and Comments are overwritten with the values in the body, and the NotePurposes, NoteResults and Contacts lists replace the note's current ones (an empty list removes them all). The note type is taken from TypeId only; NoteType is ignored. Unlike POST, the related record, note type, purpose and result IDs are not checked for existence. A client_credentials caller may send the X-On-Behalf-Of header with a user's email to re-assign the note: that user becomes its owner and is recorded as having entered and modified it.

PUT/api/v2/notes/{noteId}

Authentication

Choose one supported method for this request.

OAuth 2.0 client credentials

Parameters

noteIdpathinteger · int32required

The ID of the note to update. Must be greater than zero and match `NoteId` in the body.

X-On-Behalf-Ofheaderstring · email

Email of an active user to act as. That user is recorded as the owner/author of what this request writes. Only client_credentials tokens may send it (others get 403); an email that matches no active user gets 400.

Request body

application/jsonrequired

The complete note data, including `NoteId`.

UpdateNoteRequest
  • noteIdinteger · int32
  • noteTypestring
  • companyIdinteger · int32
  • taskIdinteger · int32nullable
  • recordIdinteger · int32
  • recordTypestring
  • typeIdinteger · int32required
  • noteDatestring · daterequired
  • commentsstringrequired
  • contactsinteger[]
  • notePurposesinteger[]
  • noteResultsinteger[]

Responses

Note updated successfully.

Standard response envelopeisSuccessmessageerrorsdata

Read the result from data. When isSuccess is false, errors lists what went wrong. Handling errors

dataNoteDto
  • noteIdinteger · int32
  • companyIdinteger · int32
  • companyNamestringnullable
  • noteTypestring
  • recordIdinteger · int32
  • recordTypestring
  • relatedTostring
  • ownerstring
  • userIdinteger · int32
  • typeIdinteger · int32
  • noteDatestring · date
  • commentsstring
  • enterBystring
  • lastModifiedBystring
  • lastModifiedstring · date-timenullable
  • enteredstring · date-timenullable
  • deletedboolean
  • contactsinteger[]
  • notePurposesinteger[]
  • noteResultsinteger[]
  • notePurposeDisplaysstring[]
  • noteResultDisplaysstring[]
  • noteContactDisplaysstring[]