---
title: "Create New File"
method: POST
path: "/api/editor/create"
tags: ["editor"]
---

# Create New File

`POST /api/editor/create`

## Request

- Base URL: `http://localhost:4242/your-computer-name`
- URL: `http://localhost:4242/your-computer-name/api/editor/create`
- Auth: none declared

Creates a new file with optional initial content.

## Request body

- CreateParams
  - `path` string, required: File path to create
  - `file_text` string, nullable: Initial file contents

## Response `204`

Successfully created file

## Other responses

- `400`: File already exists
- `422`: Validation Error
- `500`: Internal server error

## Changes

- **2026-07-13** `5424450258fc`: 1 info
  - endpoint added
- **2025-01-13** `a2d864f3a8db`: 1 breaking
  - api path removed without deprecation

[Operation history](https://skmtc.dev/cuse-dev/apis/cuse-apps-api/changes/api/editor/create/post.md)

---

[API](https://skmtc.dev/cuse-dev/apis/cuse-apps-api.md) - [All operations](https://skmtc.dev/cuse-dev/apis/cuse-apps-api/llms.txt) - [OpenAPI document](https://skmtc.dev/cuse-dev/apis/cuse-apps-api/revisions/5424450258fc?raw)
