HTTP Data API
HTTP API - Attachments
With the ATTACHMENT data type, you can link extensive binary data, such as avatar images, videos, and PDFs, to a document.
This article provides an overview of the attachment-related endpoints and functionality available for the HTTP Data API.
Attachments consist of two distinct parts: metadata and a binary large object (blob) datastore. (See ATTACHMENT)
Using the Multipart Form method, upload the raw binary contents of the file you want to attach:
Although Ditto will eventually support attaching files of up to 20 MB in size, the current infrastructure supports only a 1 MB maximum limit.
Using /api/v4/attachment/{attachment_id}, download attachments:
Updated 04 Sep 2024
Did this page help you?