---
title: "Add a file to a filesystem"
method: PUT
path: "/api/v3/fs/{storage}/{filepath}"
tags: ["v16.7.2"]
---

# Add a file to a filesystem

`PUT /api/v3/fs/{storage}/{filepath}`

Writes or overwrites a file on a filesystem

## Path parameters

- `storage` string, required
- `filepath` string, required

## Response `201`

Created

- string

## Other responses

- `204` — No Content
- `507` — Insufficient Storage

## Changes

- **2022-05-13** `d0614126abfa` — 1 breaking
  - api path removed without deprecation

[Change history](https://skmtc.dev/datarhei/apis/datarhei-core-api/changes/api/v3/fs/:storage/:filepath/put.md)

---

[API](https://skmtc.dev/datarhei/apis/datarhei-core-api.md) · [All operations](https://skmtc.dev/datarhei/apis/datarhei-core-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/datarhei/datarhei-core-api/revisions/0197dcdcdd5a/schema)
