---
title: "Update a VM interface"
method: PATCH
path: "/{org_slug}/vm-interfaces/{id}"
tags: ["VMs"]
---

# Update a VM interface

`PATCH /{org_slug}/vm-interfaces/{id}`

## Request

- Base URL: `https://api.obelinf.com`
- URL: `https://api.obelinf.com/{org_slug}/vm-interfaces/{id}`
- Auth: HTTP bearer

Update a VM interface

## Path parameters

- `org_slug` string, required
- `id` string, required

## Request body

- object
  - `description` string, nullable
  - `mac_address` string, nullable
  - `mtu` number, nullable
  - `name` string
  - `vm_id` string

## Response `200`

VM interface updated

- object
  - `vm_interface` object, required
    - `created_at` string, required
    - `id` string, required
    - `name` string, required
    - `updated_at` string, required
    - `vm_id` string, required
    - `description` string, nullable
    - `mac_address` string, nullable
    - `mtu` number, nullable

## Other responses

- `400`: Validation error
- `404`: Not found

---

[API](https://skmtc.dev/obelinf/apis/obelinf-api.md) · [All operations](https://skmtc.dev/obelinf/apis/obelinf-api/llms.txt) · [OpenAPI document](https://skmtc.dev/obelinf/apis/obelinf-api/revisions/463fcf791828?raw)
