v2

latestSwagger 2.02026-08-04108164321.0 KB
FileAttachment

Uploads a single file as a base64-encoded JSON body. Designed for MCP clients and other JSON-only callers that can't easily build multipart/form-data requests. 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/Base64

Request body

Filenamestring

Original filename including extension. Required.

ContentTypestring

Optional MIME type. Inferred from extension if omitted.

Base64Datastring

Base64-encoded file content. Required.

Response

Returns the uploaded file attachment details.