---
title: "PUT /v1beta/{tenantId}/block/volumeGroups/{volumeGroupId}"
method: PUT
path: "/v1beta/{tenantId}/block/volumeGroups/{volumeGroupId}"
tags: ["Block volume group"]
---

# PUT /v1beta/{tenantId}/block/volumeGroups/{volumeGroupId}

`PUT /v1beta/{tenantId}/block/volumeGroups/{volumeGroupId}`

## Request

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

Updates a volume group.

## Request body

- object
  - `name` string
  - `description` string
  - `addVolumes` string[]
  - `removeVolumes` string[]

## Response `200`

OK

- VolumeGroupRespSpec: Volume group contains a list of volumes that are used in the same application.
  - `id` string
  - `createdAt` string, date-time
  - `updatedAt` string, date-time
  - `tenantId` string
  - `userId` string
  - `name` string
  - `description` string
  - `availabilityZone` string
  - `status` string
  - `poolId` string
  - `profiles` string[]

## 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]/profiles` became optional for the status `200`
- **2019-11-22** `a41e1157d0e7`: 4 breaking
  - the response property `allOf[subschema #2]/availabilityZone` became optional for the status `200`
  - the response property `allOf[subschema #2]/description` 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`: 1 breaking, 6 info
  - added required 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/volumeGroups/:volumeGroupId/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)
