---
title: "POST /v1beta/{tenantId}/block/volumes/{volumeId}/resize"
method: POST
path: "/v1beta/{tenantId}/block/volumes/{volumeId}/resize"
tags: ["Block volumes"]
---

# POST /v1beta/{tenantId}/block/volumes/{volumeId}/resize

`POST /v1beta/{tenantId}/block/volumes/{volumeId}/resize`

## Request

- Base URL: `https://localhost:50040`
- URL: `https://localhost:50040/v1beta/{tenantId}/block/volumes/{volumeId}/resize`
- Auth: HTTP basic

Extends a volume.

## Request body

- object: Extends the size of a volume to a requested size, in gibibytes (GiB).
  - `newSize` integer, required

## Response `202`

Accepted

- VolumeRespSpec: Volume is an block device created by storage service, it can be attached to physical machine or virtual machine instance.
  - `id` string
  - `createdAt` string, date-time
  - `updatedAt` string, date-time
  - `tenantId` string
  - `userId` string
  - `name` string
  - `multiAttach` boolean
  - `description` string
  - `size` integer
  - `availabilityZone` string
  - `status` string
  - `profileId` string
  - `poolId` string
  - `snapshotId` string
  - `groupId` string
  - `snapshotFromCloud` boolean
  - `replicationId` string
  - `identifier` object
    - `durableName` string
    - `durableNameFormat` string
  - `replicationDriverData` object
  - `metadata` object

## Other responses

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

## Changes

- **2019-12-09** `b151718b45cf`: 2 breaking, 1 info
  - the response property `allOf[subschema #2]/name` became optional for the status `202`
  - the response property `allOf[subschema #2]/size` became optional for the status `202`
  - added the optional property `allOf[subschema #2]/identifier` to the response with the `202` status
- **2019-11-22** `a41e1157d0e7`: 4 breaking
  - the response property `allOf[subschema #2]/availabilityZone` became optional for the status `202`
  - the response property `allOf[subschema #2]/poolId` became optional for the status `202`
  - the response property `allOf[subschema #2]/profileId` became optional for the status `202`
  - the response property `allOf[subschema #2]/tenantId` became optional for the status `202`
- **2019-11-08** `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 `401`
  - added the media type `application/json` for the response with the status `403`
  - …2 more

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