---
title: "Uploads a file attachment for an expense. Accepts multipart/form-data with the file content. Returns the uploaded file details including ID and URL."
method: POST
path: "/api/Expense/Attachment"
tags: ["Expense"]
---

# Uploads a file attachment for an expense. Accepts multipart/form-data with the file content. Returns the uploaded file details including ID and URL.

`POST /api/Expense/Attachment`

## Response `200`

Returns the uploaded file attachment details including File Attachment ID and URL.

- ExpenseAttachmentUploadResult — Result of uploading an expense file attachment, containing the file details.
  - `FileAttachments` FileAttachmentDetails[] — List of uploaded file attachment details.
    - `FileAttachmentID` integer — Unique identifier for the file attachment.
    - `SizeBytes` integer — File size in bytes.
    - `OriginalFilename` string — Original filename as uploaded.
    - `PublicFileURL` string — Public URL to access the uploaded file.
    - `PreviewBaseURL` string — URL for a preview/thumbnail of the file.

## Other responses

- `401` — Unauthorized

---

[API](https://skmtc.net/avaza/apis/avaza-api-documentation.md) · [All operations](https://skmtc.net/avaza/apis/avaza-api-documentation/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/avaza/avaza-api-documentation/versions/1eeadf750514/schema)
