---
title: "PUT /v1beta/{tenantId}/block/snapshots/{snapshotId}"
method: PUT
path: "/v1beta/{tenantId}/block/snapshots/{snapshotId}"
tags: ["Block volume snapshots"]
---

# PUT /v1beta/{tenantId}/block/snapshots/{snapshotId}

`PUT /v1beta/{tenantId}/block/snapshots/{snapshotId}`

## Request

- Base URL: `https://localhost:50040`
- URL: `https://localhost:50040/v1beta/{tenantId}/block/snapshots/{snapshotId}`
- Auth: HTTP basic

Updates a volume snapshot.

## Request body

- object
  - `name` string
  - `description` string

## Response `200`

OK

- VolumeSnapshotRespSpec: Snapshot is a description of volume snapshot resource.
  - `id` string
  - `createdAt` string, date-time
  - `updatedAt` string, date-time
  - `tenantId` string
  - `userId` string
  - `name` string
  - `description` string
  - `size` integer
  - `status` string
  - `volumeId` string
  - `profileId` string
  - `metadata` object

## Other responses

- `400`: BadRequest
- `401`: NotAuthorized
- `403`: Forbidden
- `404`: The resource does not exist
- `500`: An unexpected error occured.

## Changes

- **2019-12-09** `b151718b45cf`: 2 breaking
  - the response property `allOf[subschema #2]/name` became optional for the status `200`
  - the response property `allOf[subschema #2]/volumeId` became optional for the status `200`
- **2019-11-22** `a41e1157d0e7`: 3 breaking
  - the response property `allOf[subschema #2]/profileId` became optional for the status `200`
  - the response property `allOf[subschema #2]/status` became optional for the status `200`
  - the response property `allOf[subschema #2]/tenantId` became optional for the status `200`
- **2019-11-08** `fd0669e1e56f`: 7 info
  - added optional request body
  - added the media type `application/json` for the response with the status `200`
  - 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`
  - …3 more

[Operation history](https://skmtc.dev/sodafoundation/apis/soda-api/changes/v1beta/:tenantId/block/snapshots/:snapshotId/put.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)
