---
title: "Upload a single file to the shared path"
method: POST
path: "/shares/{id}/{fileName}"
tags: ["public shares"]
---

# Upload a single file to the shared path

`POST /shares/{id}/{fileName}`

The share must be defined with the write scope and the associated user must have the upload/overwrite permissions

## Response `201`

successful operation

- ApiResponse
  - `message` string — message, can be empty
  - `error` string — error description if any

## Other responses

- `400` — Bad Request
- `401` — Unauthorized
- `403` — Forbidden
- `413` — Request Entity Too Large, max allowed size exceeded
- `500` — Internal Server Error
- `default` — Unexpected Error

---

[API](https://skmtc.net/kanton-bern/apis/sftpgo.md) · [All operations](https://skmtc.net/kanton-bern/apis/sftpgo/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/kanton-bern/sftpgo/revisions/d8d616a479b0/schema)
