---
title: "Add a new userspace device to the VM"
method: PUT
path: "/vm.add-user-device"
---

# Add a new userspace device to the VM

`PUT /vm.add-user-device`

## Request body

- VmAddUserDevice
  - `socket` string, required

## Response `200`

The new device was successfully added to the VM instance.

- PciDeviceInfo — Information about a PCI device
  - `id` string, required
  - `bdf` string, required

## Other responses

- `204` — The new device was successfully (cold) added to the VM instance.
- `404` — The new device could not be added to the VM instance.

## Changes

- **2024-04-30** `7f0022889515` — 1 info
  - endpoint added
- **2020-04-28** `bf56946c8349` — 1 breaking
  - api path removed without deprecation

[Change history](https://skmtc.dev/kata-containers/apis/cloud-hypervisor-api/changes/vm.add-user-device/put.md)

---

[API](https://skmtc.dev/kata-containers/apis/cloud-hypervisor-api.md) · [All operations](https://skmtc.dev/kata-containers/apis/cloud-hypervisor-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/kata-containers/cloud-hypervisor-api/revisions/c30c01a9fb80/schema)
