---
title: "Update a storage volume"
method: POST
path: "/v2/alpha/on-demand/storage-volumes/update"
---

# Update a storage volume

`POST /v2/alpha/on-demand/storage-volumes/update`

Update a storage volume's attached instances and/or size

## Request body

- object
  - `storageVolumeId` integer, required
  - `label` string
  - `rentalIds` integer[]
  - `sizeInGb` integer

## Response `200`

Successful response

- object
  - `storageVolumeId` integer, required
  - `attachedRentals` integer[], required
  - `sizeInGb` integer, required
  - `message` string, required

## Other responses

- `400` — Invalid input data
- `401` — Authorization not provided
- `403` — Insufficient access
- `500` — Internal server error

---

[API](https://skmtc.net/hyperbolic/apis/castle-api.md) · [All operations](https://skmtc.net/hyperbolic/apis/castle-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/hyperbolic/castle-api/revisions/fd9320b4b13d/schema)
