Send Chat Message with Pre-Uploaded Attachments (JSON)

View as Markdown
Variant B of the chat-message send. Client first uploads files to the Attachments module against the PARENT thread (belongs_to=communications_thread), then sends this JSON request referencing the returned UUIDs. On receipt, the server re-points each Attachment's ownership from Thread to Message and creates the pivot rows. Required: body (string, max 1600). Required: attachment_uuids (array of 1-10 UUIDs; each must belong to the same thread + tenant - cross-thread reuse returns 422). Mutually exclusive with files[] multipart variant on the same send. Returns 202.

Headers

{{tenant_key_name}}stringOptional

Request

This endpoint expects an object.
bodystringRequired
attachment_uuidslist of stringsRequired

Response

Successful response