---
title: "POST /storage/volumes/{name}"
method: POST
path: "/storage/volumes/{name}"
tags: ["storage"]
---

# POST /storage/volumes/{name}

`POST /storage/volumes/{name}`

Attach a volume to a container

## Path parameters

- `name` string, required

## Request body

- VolumeJoinConfig
  - `Handle` string, required
  - `MountPath` string, required
  - `Flags` object, required

## Response `200`

OK

- string

## Other responses

- `404` — Volume not found
- `500` — ServerError
- `default` — error

## Changes

- **2018-06-14** `d95851b27556` — 1 info
  - added the new optional `header` request parameter `Op-ID` to all path's operations

[Change history](https://skmtc.dev/vmware/apis/port-layer-api/changes/storage/volumes/:name/post.md)

---

[API](https://skmtc.dev/vmware/apis/port-layer-api.md) · [All operations](https://skmtc.dev/vmware/apis/port-layer-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/vmware/port-layer-api/revisions/5fff0b8814c7/schema)
