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

# PUT /v1beta/{tenantId}/block/attachments/{attachmentId}

`PUT /v1beta/{tenantId}/block/attachments/{attachmentId}`

## Request

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

Updates a volume attachments

## Request body

- VolumeAttachmentUpdateSpec
  - `mountpoint` string

## Response `200`

OK

- 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
- `404`: The resource does not exist
- `500`: An unexpected error occured.

## Changes

- **2019-11-20** `c535972853d1`: 7 breaking, 1 warning, 2 info
  - the request's body type changed from no type to `object`
  - the response property `allOf[subschema #2]/connectionInfo` became optional for the status `200`
  - the response property `allOf[subschema #2]/mountpoint` became optional for the status `200`
  - the response property `allOf[subschema #2]/status` became optional for the status `200`
  - …6 more
- **2019-11-20** `64d46542013a`: 2 breaking, 2 warning, 6 info
  - added `#/components/schemas/BaseModel, subschema #2` to the request body `allOf` list
  - the request's body type changed from `object` to no type
  - removed the request property `mountpoint`
  - removed the optional property `allOf[subschema #2]/hostId` from the response with the `200` status
  - …6 more
- **2019-11-19** `9e15ae7f15d8`: 1 warning
  - removed the request property `connectionInfo`
- **2019-11-19** `822ca3d7c177`: 7 breaking, 1 warning, 3 info
  - the request's body type changed from no type to `object`
  - the response property `allOf[subschema #2]/connectionInfo` became optional for the status `200`
  - the response property `allOf[subschema #2]/mountpoint` became optional for the status `200`
  - the response property `allOf[subschema #2]/status` became optional for the status `200`
  - …7 more
- …earlier changes not shown

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