---
title: "Creates new vsock with ID specified by the id parameter."
method: PUT
path: "/vsocks/{id}"
---

# Creates new vsock with ID specified by the id parameter.

`PUT /vsocks/{id}`

If the vsock device with the specified ID already exists, its body will be updated based on the new input. May fail if update is not possible.

## Path parameters

- `id` string, required

## Request body

- Vsock
  - `id` string, required
  - `guest_cid` integer — Guest Vsock CID

## Response `201`

Vsock created

## Other responses

- `204` — Vsock updated
- `400` — Vsock cannot be created due to bad input
- `default` — Internal server error

---

[API](https://skmtc.dev/solo-io/apis/firecracker-api.md) · [All operations](https://skmtc.dev/solo-io/apis/firecracker-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/solo-io/firecracker-api/revisions/6e4082be4a32/schema)
