---
title: "Upload a file"
method: POST
path: "/api/external/v2/ledger_attachments"
tags: ["Ledger Attachments"]
deprecated: true
---

# Upload a file

`POST /api/external/v2/ledger_attachments`

> **Deprecated.**

Upload a file to attach to a ledger entry. The maximum allowed file size is 100MB.
Note that this will not upload a file into the DMS (GED).

> ‼️
> This endpoint is **DEPRECATED**
> As an alternative, please use the [File Attachments: Upload a file](https://pennylane.readme.io/reference/postfileattachments#/) endpoint.

> ℹ️
> This endpoint requires the following scope: `ledger`

## Response `201`

Returns the created attachment

- object
  - `url` string, required
  - `id` integer, required
  - `filename` string, required

## Other responses

- `400` — Bad request
- `401` — Access token is missing or invalid
- `403` — Access to this resource forbidden
- `404` — The resource was not found

---

[API](https://skmtc.net/pennylane/apis/company-v2.md) · [All operations](https://skmtc.net/pennylane/apis/company-v2/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/pennylane/company-v2/versions/a5b7236473c6/schema)
