---
title: "Create a VM interface"
method: POST
path: "/{org_slug}/vm-interfaces"
tags: ["VMs"]
---

# Create a VM interface

`POST /{org_slug}/vm-interfaces`

## Request

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

Create a VM interface

## Path parameters

- `org_slug` string, required

## Request body

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

## Response `201`

VM interface created

- 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
- `403`: Feature not available
- `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)
