---
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

- `file_name` string, required

## Request body

- string

## Response `200`

Snapshot uploaded successfully

- SnapshotMeta
  - `id` string, required
  - `owner` string, required
  - `file_name` string, required
  - `version` integer, required
  - `registered` boolean
  - `created_at` string, date-time, required

## Other responses

- `404` — File not found

## Changes

- **2025-01-21** `ad4cd30302ac` — 1 info
  - the endpoint scheme security `BearerAuth` was added to the API
- **2025-01-20** `93e312846ab3` — 3 breaking, 1 warning, 8 info
  - the request's body type/format changed from `object`/`` to `string`/``
  - removed the required property `result` from the response with the `200` status
  - removed the required property `snapshot` from the response with the `200` status
  - removed the request property `content`
  - …8 more

[Change 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/ad4cd30302ac/schema)
