---
title: "Add a file to a collection"
method: POST
path: "/collections/fs/add"
tags: ["collections"]
---

# Add a file to a collection

`POST /collections/fs/add`

This endpoint adds a file to a collection

## Query parameters

- `coluuid` string, required
- `content` string, required
- `dir` string
- `overwrite` string

## Response `200`

OK

- string

## Other responses

- `400` — Bad Request
- `500` — Internal Server Error

## Changes

- **2023-01-04** `fa8cd2301bf1` — 1 warning, 2 info
  - deleted the `query` request parameter `path`
  - added the new optional `query` request parameter `dir`
  - added the new optional `query` request parameter `overwrite`
- **2022-11-07** `c03ca04ba831` — 3 info
  - added the non-success response with the status `400`
  - added the non-success response with the status `500`
  - added the success response with the status `200`
- **2022-11-07** `02272f8e48e5` — 1 breaking, 2 info
  - removed the success response with the status `200`
  - removed the non-success response with the status `400`
  - removed the non-success response with the status `500`
- **2022-11-03** `1f1ec6607867` — 3 info
  - added the non-success response with the status `400`
  - added the non-success response with the status `500`
  - added the success response with the status `200`
- **2022-10-29** `3ca60f3cf6bb` — 3 info
  - added the non-success response with the status `400`
  - added the non-success response with the status `500`
  - added the success response with the status `200`

[Full history](https://skmtc.dev/application-research/apis/estuary-api/changes/collections/fs/add/post.md)

---

[API](https://skmtc.dev/application-research/apis/estuary-api.md) · [All operations](https://skmtc.dev/application-research/apis/estuary-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/application-research/estuary-api/revisions/b9ae518bf64b/schema)
