---
title: "Add a file or folder in your application tree"
method: POST
path: "/files"
tags: ["Files"]
---

# Add a file or folder in your application tree

`POST /files`

## Query parameters

- `path` string, required

## Request body

- object
  - `isDir` boolean — Whether or not the new item is a directory
  - `content` string — The content if the new item is a file

## Other responses

- `404` — File not found
- `500` — Internal serveur error

---

[API](https://skmtc.net/materiahq/apis/materia-server.md) · [All operations](https://skmtc.net/materiahq/apis/materia-server/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/materiahq/materia-server/versions/f4e80651bb93/schema)
