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

# Add a new device to the VM

`PUT /vm.add-device`

## Request body

- DeviceConfig
  - `path` string, required
  - `iommu` boolean
  - `pci_segment` integer
  - `id` string
  - `x_nv_gpudirect_clique` integer

## 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
  - added the new optional request property `x_nv_gpudirect_clique`
- **2022-10-21** `c2eef935c47a` — 1 breaking, 1 info
  - the request property `path` became required
  - added the new optional request property `pci_segment`
- **2022-02-24** `2f0e5d4cc0d8` — 1 info
  - added the success response with the status `204`
- **2020-10-05** `0548cd166df9` — 2 info
  - added the new optional request property `id`
  - added the new optional request property `iommu`
- **2020-08-10** `8330c1bec628` — 1 breaking, 1 info
  - removed the success response with the status `204`
  - added the success response with the status `200`

[Full history](https://skmtc.dev/kata-containers/apis/cloud-hypervisor-api/changes/vm.add-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)
