---
title: "Create a new file"
method: POST
path: "/me/files/{fileName}"
tags: ["me"]
---

# Create a new file

`POST /me/files/{fileName}`

## Path parameters

- `fileName` string, required

## Response `201`

File created successfully

- PrivateFileMeta — Metadata shown to the owner
  - `owner` string, required
  - `fileName` string, required
  - `versions` Version[], required
  - `registeredVersions` Version[], required
  - `createdAt` string, date-time, required
  - `updatedAt` string, date-time, required

## Other responses

- `400` — Invalid input
- `409` — File already exists

## Changes

- **2025-01-23** `65605c05e7f7` — 5 breaking, 1 warning, 4 info
  - added the new path request parameter `fileName`
  - removed the required property `created_at` from the response with the `201` status
  - removed the required property `file_name` from the response with the `201` status
  - removed the required property `registered_versions` from the response with the `201` status
  - …6 more
- **2025-01-23** `4905576a1c1e` — 5 breaking, 1 warning, 4 info
  - added the new path request parameter `file_name`
  - removed the required property `createdAt` from the response with the `201` status
  - removed the required property `fileName` from the response with the `201` status
  - removed the required property `registeredVersions` from the response with the `201` status
  - …6 more
- **2025-01-22** `7a2b2f42a2f2` — 5 breaking, 1 warning, 4 info
  - added the new path request parameter `fileName`
  - removed the required property `created_at` from the response with the `201` status
  - removed the required property `file_name` from the response with the `201` status
  - removed the required property `registered_versions` from the response with the `201` status
  - …6 more
- **2025-01-22** `d3210261c539` — 1 info
  - api operation id `createMyFile` was added
- **2025-01-21** `ad4cd30302ac` — 1 info
  - the endpoint scheme security `BearerAuth` was added to the API

[Full history](https://skmtc.dev/lapisla-prover/apis/lapisla-prover-api/changes/me/files/:fileName/post.md)

---

[API](https://skmtc.dev/lapisla-prover/apis/lapisla-prover-api.md) · [All operations](https://skmtc.dev/lapisla-prover/apis/lapisla-prover-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/lapisla-prover/lapisla-prover-api/revisions/396dcd08fcd9/schema)
