---
title: "Register a snapshot to the public registry"
method: POST
path: "/me/files/{fileName}/{version}/register"
tags: ["me"]
---

# Register a snapshot to the public registry

`POST /me/files/{fileName}/{version}/register`

## Path parameters

- `fileName` string, required
- `version` integer, required

## Request body

- Registration
  - `tags` Tag[], required
  - `description` string, required

## Response `201`

Snapshot registered successfully

- SnapshotRegisterResponse
  - `result` 'registered' | 'already_registered' | 'invalid', required

## Other responses

- `400` — Invalid input
- `404` — File or snapshot not found

## Changes

- **2026-07-17** `4ff151025f7c` — 1 warning
  - changed the pattern of the `path` request parameter `fileName` from `/^[a-z\d](?:[a-z\d]|-(?=[a-z\d])){0,38}$/i` to `/^[a-z\d](?:[a-z\d]|[-_](?=[a-z\d])){0,38}$/i`
- **2025-01-26** `92dc510f35d6` — 1 warning, 1 info
  - removed the optional property `registered` from the response with the `201` status
  - added the required property `result` to the response with the `201` status
- **2025-01-25** `113228ab116c` — 1 info
  - added optional request body
- **2025-01-25** `bff34b543961` — 1 info
  - added the media type `application/json` for the response with the status `201`
- **2025-01-23** `65605c05e7f7` — 1 breaking, 1 warning
  - added the new path request parameter `fileName`
  - deleted the `path` request parameter `file_name`

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