v1

Swagger 2.02026-07-13107162315.5 KB
FileAttachment

Uploads a single file by giving the server a public https URL to fetch from. The server downloads the file (capped at 50 MB, SSRF-protected: blocks RFC1918, loopback, link-local, AWS metadata IPs, and IPv6 ULA). When body.LinkTo is supplied (entityType in {Task, Expense, Estimate, Invoice}), the row is linked in the same transaction; otherwise it is inserted as AttachmentType="Draft" for later linking.

post/api/FileAttachment/FromUrl

Request body

SourceUrlstring

Public https URL the server will fetch to obtain the file. Required.

Filenamestring

Optional original filename. If omitted, derived from Content-Disposition or the URL path.

ContentTypestring

Optional MIME type. Falls back to the response Content-Type header.

Response

Returns the uploaded file attachment details.