API reference
All operations
NOTE

Adds a new note.

A client_credentials caller may send the `X-On-Behalf-Of` header with a user's email; that user then owns and is recorded as entering the note. Without the header the note belongs to the caller.

POST/api/v2/notes

Authentication

Choose one supported method for this request.

OAuth 2.0 client credentials

Parameters

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 details of the note to add.

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

Responses

Note added 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[]