---
title: "Upload a snapshot of the file"
method: PATCH
path: "/me/files/{fileName}"
tags: ["me"]
---

# Upload a snapshot of the file

`PATCH /me/files/{fileName}`

## Path parameters

- `fileName` string, required

## Request body

- SourceCodeWrapper
  - `content` string, required

## Response `200`

Snapshot uploaded successfully

- SnapshotMeta
  - `id` string, required
  - `owner` string, required
  - `fileName` string, required
  - `version` integer, required
  - `registered` boolean
  - `createdAt` string, date-time, required

## Other responses

- `404` — File not found

## Changes

- **2025-01-23** `7c11e65dc574` — 2 breaking
  - added the new required request property `content`
  - the request's body type/format changed from `string`/`` to `object`/``
- **2025-01-23** `65605c05e7f7` — 3 breaking, 1 warning, 2 info
  - added the new path request parameter `fileName`
  - removed the required property `created_at` from the response with the `200` status
  - removed the required property `file_name` from the response with the `200` status
  - deleted the `path` request parameter `file_name`
  - …2 more
- **2025-01-23** `4905576a1c1e` — 3 breaking, 1 warning, 2 info
  - added the new path request parameter `file_name`
  - removed the required property `createdAt` from the response with the `200` status
  - removed the required property `fileName` from the response with the `200` status
  - deleted the `path` request parameter `fileName`
  - …2 more
- **2025-01-22** `7a2b2f42a2f2` — 3 breaking, 1 warning, 2 info
  - added the new path request parameter `fileName`
  - removed the required property `created_at` from the response with the `200` status
  - removed the required property `file_name` from the response with the `200` status
  - deleted the `path` request parameter `file_name`
  - …2 more
- **2025-01-22** `d3210261c539` — 1 info
  - api operation id `uploadMySnapshot` was added

[Full history](https://skmtc.dev/lapisla-prover/apis/lapisla-prover-api/changes/me/files/:fileName/patch.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)
