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

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

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

Creates a volume attachment.

## Request body

- VolumeAttachmentCreateSpec — Attachment is a description of volume attached resource.
  - `hostId` string, required
  - `volumeId` string, required
  - `attachMode` 'ro' | 'rw'

## Response `202`

Accepted

- VolumeAttachmentRespSpec — Attachment is a description of volume attached resource.
  - `id` string
  - `createdAt` string, date-time
  - `updatedAt` string, date-time
  - `tenantId` string
  - `userId` string
  - `attachMode` 'rw' | 'ro'
  - `hostId` string
  - `volumeId` string
  - `mountpoint` string
  - `status` string
  - `connectionInfo` ConnectionInfo — ConnectionInfo is a structure for all properties of connection when creating a volume attachment.
    - `driverVolumeType` string
    - `data` object
    - `extraProperties` object

## Other responses

- `400` — BadRequest
- `401` — NotAuthorized
- `403` — Forbidden
- `500` — An unexpected error occured.

---

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