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

# POST /v1beta/{tenantId}/block/volumeGroups

`POST /v1beta/{tenantId}/block/volumeGroups`

Creates a volume group.

## Request body

- VolumeGroupCreateSpec
  - `name` string, required
  - `description` string
  - `profiles` string[], required

## Response `202`

Accepted

- 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
- `500` — An unexpected error occured.

## Changes

- **2019-12-09** `b151718b45cf` — 5 breaking, 1 warning, 2 info
  - added the new required request property `name`
  - added the new required request property `profiles`
  - the request's body type changed from no type to `object`
  - the response property `allOf[subschema #2]/name` became optional for the status `202`
  - …4 more
- **2019-11-22** `a41e1157d0e7` — 4 breaking, 1 info
  - the response property `allOf[subschema #2]/availabilityZone` became optional for the status `202`
  - the response property `allOf[subschema #2]/description` became optional for the status `202`
  - the response property `allOf[subschema #2]/status` became optional for the status `202`
  - the response property `allOf[subschema #2]/tenantId` became optional for the status `202`
  - …1 more
- **2019-11-06** `fd0669e1e56f` — 1 breaking, 5 info
  - added required 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 `400`
  - added the media type `application/json` for the response with the status `401`
  - …2 more
- **2018-05-04** `3a7682f5369d` — 1 breaking
  - api path removed without deprecation

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