---
title: "Resize a block storage volume"
method: PUT
path: "/block-storage/{id}:resize-volume"
tags: ["block-storage"]
---

# Resize a block storage volume

`PUT /block-storage/{id}:resize-volume`

## Request

- Base URL: `https://api-ch-gva-2.exoscale.com/v2`
- URL: `https://api-ch-gva-2.exoscale.com/v2/block-storage/{id}:resize-volume`
- Auth: none declared
- TypeScript: <https://skmtc.dev/exoscale/apis/exoscale-api/docs/block-storage/:id:resize-volume/put.ts> (a function with typed inputs; its response is checked against the schema)

This operation resizes a Block storage volume. Note: the volume can only grow, cannot be shrunk. Only detached volumes or volumes attached to stopped instances can be resized.

## Path parameters

- `id` string, uuid, required

## Request body

- object
  - `size` integer, required: Volume size in GiB

## Response `200`

200

- BlockStorageVolume: Block storage volume
  - `labels` Labels
  - `instance` InstanceRef: Target Instance
    - `id` string, uuid: Instance ID
  - `name` string: Volume name
  - `state` 'snapshotting' | 'deleted' | 'creating' | 'detached' | 'deleting' | 'attaching' | 'error' | 'attached' | 'detaching': Volume state
  - `size` integer: Volume size
  - `blocksize` integer: Volume block size
  - `block-storage-snapshots` BlockStorageSnapshotRef[]: Volume snapshots, if any
    - `id` string, uuid: Block storage snapshot ID
  - `id` string, uuid: Volume ID
  - `encrypted` boolean: Indicates if the block-storage volume is encrypted
  - `created-at` string, date-time: Volume creation date

## Changes

- **2026-11-06** `63da6f74c845`: 1 info
  - added the optional property `encrypted` to the response with the `200` status
- **2025-08-10** `814bf1ccd925`: 1 info
  - the `size` request property's exclusiveMinimum was decreased from `false` to `true`
- **2025-05-22** `37a05010e8b4`: 1 info
  - added the optional property `block-storage-snapshots` to the response with the `200` status
- **2025-01-18** `cf1e7ba7143f`: 1 breaking, 1 warning, 1 info
  - the `size` response property's min was decreased from `10.00` to `1.00` for the response status `200`
  - removed the optional property `block-storage-snapshots` from the response with the `200` status
  - the `size` request property's min was decreased from `11.00` to `0.00`
- **2024-05-22** `d1903c399d90`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/exoscale/apis/exoscale-api/changes/block-storage/:id:resize-volume/put.md)

---

[API](https://skmtc.dev/exoscale/apis/exoscale-api.md) - [All operations](https://skmtc.dev/exoscale/apis/exoscale-api/llms.txt) - [OpenAPI document](https://skmtc.dev/exoscale/apis/exoscale-api/revisions/63da6f74c845?raw)
