---
title: "POST /v1beta/{tenantId}/file/snapshots"
method: POST
path: "/v1beta/{tenantId}/file/snapshots"
tags: ["File Share Snapshots"]
---

# POST /v1beta/{tenantId}/file/snapshots

`POST /v1beta/{tenantId}/file/snapshots`

Creates a file share snapshot.

## Request body

- FileShareSnapshotCreateSpec
  - `fileshareId` string, required
  - `name` string, required
  - `description` string

## Response `202`

Accepted

- FileShareSnapshotRespSpec — Snapshot of file share has following specification.
  - `id` string
  - `createdAt` string, date-time
  - `updatedAt` string, date-time
  - `fileshareId` string
  - `snapId` string
  - `tenantId` string
  - `userId` string
  - `name` string
  - `description` string
  - `shareSize` integer
  - `snapshotSize` integer
  - `status` string
  - `profileId` string
  - `metadata` object

## Other responses

- `400` — BadRequest
- `401` — NotAuthorized
- `403` — Forbidden
- `500` — An unexpected error occured.

## Changes

- **2019-12-09** `6f907ee4cf9b` — 7 breaking, 1 warning, 6 info
  - added the new required request property `fileshareId`
  - added the new required request property `name`
  - the request's body type changed from no type to `object`
  - the response property `allOf[subschema #2]/fileshareId` became optional for the status `202`
  - …10 more
- **2019-11-06** `fd0669e1e56f` — 6 info
  - added optional request body
  - added the media type `application/json` for the response with the status `202`
  - added the media type `application/json` for the response with the status `400`
  - added the media type `application/json` for the response with the status `401`
  - …2 more
- **2019-05-22** `2aca5485378c` — 1 info
  - endpoint added
- **2018-05-04** `3a7682f5369d` — 1 breaking
  - api path removed without deprecation

[Change history](https://skmtc.dev/sodafoundation/apis/soda-api/changes/v1beta/:tenantId/file/snapshots/post.md)

---

[API](https://skmtc.dev/sodafoundation/apis/soda-api.md) · [All operations](https://skmtc.dev/sodafoundation/apis/soda-api/llms.txt) · [OpenAPI document](https://skmtc.dev/sodafoundation/apis/soda-api/revisions/62ce0f6c94b4?raw)
