LineItemNotes

Create a template. Duplicate rule: same trimmed case-folded text + same scope (and same owner, for Personal) UNIONS the incoming attachments into the existing row and returns it with 200 instead of minting a second one — so "Save note" of the same wording on a second med naturally accretes attachments. Any-item absorbs: if either side applies to any item, the merged result does.

Changed on
post/line-item-notes

Request

Request body

textstring
titlestring nullable
appliesToAnyItemboolean
scopeinteger

Response

OK

idstring
textstring

The note body stamped into the line (client-facing copy).

titlestring nullable

Optional short label for the picker.

appliesToAnyItemboolean

True = offered on every keyed line (and List<LineItemNoteAttachmentDto> LineItemNoteTemplateDto.Attachments is empty). False with a non-empty list = offered only on those items' lines. False with an EMPTY list = orphaned (its items were deleted): offered nowhere, shown as unattached in settings.

scopeinteger
createdByUserIdstring nullable
lastUsedAtstring date-time nullable
createdAtstring date-time
updatedAtstring date-time

Changes