---
title: "Upload an attachment."
method: POST
path: "/v1/attachments/{id}/upload"
tags: ["attachments"]
---

# Upload an attachment.

`POST /v1/attachments/{id}/upload`

Use this endpoint to upload (and possible overwrite) the file contents of an attachment. Simply put the entire file in the body as binary data.

## Path parameters

- `id` string, required

## Headers

- `X-Trace-Id` string, uuid

## Response `204`

Upload was a success

## Other responses

- `400` — Bad request
- `401` — Unauthenticated
- `404` — Page not found
- `422` — Validation error. The body will have the exact details.
- `500` — Internal exception

---

[API](https://skmtc.dev/firefly-iii/apis/firefly-iii-api-develop.md) · [All operations](https://skmtc.dev/firefly-iii/apis/firefly-iii-api-develop/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/firefly-iii/firefly-iii-api-develop/revisions/8a1f6472e04b/schema)
