v1
latestSwagger 2.02026-07-13107162315.5 KBPost a new comment / discussion message to a task. Supports plain comments, internal notes, replies to existing messages, and file attachments.
To attach files, first upload each file via POST /api/FileAttachment (without a LinkTo) — that returns a FileAttachmentID with AttachmentType='Draft'. Then pass those IDs in FileAttachmentIDs here. Each ID must be owned by the current user and not already linked to another entity. Maximum 8 attachments per message; ResponseBody is capped at 16,000 characters.
To @mention a user — which notifies them and adds them as a follower of the task — embed a mention span in ResponseBody. The span MUST carry a class attribute immediately before data-mentionid, e.g. <span class="mention" data-mentionid="12345">@Firstname Lastname</span>. The class attribute is required: a span with only data-mentionid (no class) is stored as plain text and is NOT parsed as a mention, so the user is neither notified nor followed. Resolve the numeric user id via GET /api/User. Repeat the span to mention multiple users.
Request body
Response
The newly created discussion message in the same shape used inside the Get TaskDiscussion responses[] array.