---
title: "Update Volume"
method: PATCH
path: "/apps/{appId}/volumes/{volumeId}"
tags: ["Volumes"]
---

# Update Volume

`PATCH /apps/{appId}/volumes/{volumeId}`

## Request

- Base URL: `https://api.bunny.net/mc`
- URL: `https://api.bunny.net/mc/apps/{appId}/volumes/{volumeId}`
- Auth: API key in header `AccessKey`
- TypeScript: <https://skmtc.dev/bunny/apis/magic-containers-api/docs/apps/:appId/volumes/:volumeId/patch.ts> (a function with typed inputs; its response is checked against the schema)

Partially updates a volume template's configuration including name and size. Only provided fields will be updated.

## Path parameters

- `appId` string, required
- `volumeId` string, required

## Request body

- PatchVolumeRequest
  - `name` string, nullable
  - `size` integer, nullable

## Response `200`

Volume was successfully updated.

- UpdateVolumeResponse
  - `name` string
  - `size` number, double

## Other responses

- `400`: Invalid input.
- `401`: User is unauthorized.
- `404`: Volume template not found.
- `500`: Unexpected server error.

## Changes

- **2026-04-26** `62fb48c758fb`: 6 info
  - added the optional property `id` to the response with the `400` status
  - added the optional property `id` to the response with the `404` status
  - added the optional property `id` to the response with the `500` status
  - the response property `errors/items/message` became required for the status `400`
  - …2 more

[Operation history](https://skmtc.dev/bunny/apis/magic-containers-api/changes/apps/:appId/volumes/:volumeId/patch.md)

---

[API](https://skmtc.dev/bunny/apis/magic-containers-api.md) - [All operations](https://skmtc.dev/bunny/apis/magic-containers-api/llms.txt) - [OpenAPI document](https://skmtc.dev/bunny/apis/magic-containers-api/revisions/7bb58a0591b0?raw)
