---
title: "Create a VLAN"
method: POST
path: "/{org_slug}/vlans"
tags: ["VLANs"]
---

# Create a VLAN

`POST /{org_slug}/vlans`

## Request

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

Create a VLAN

## Path parameters

- `org_slug` string, required

## Request body

- object
  - `name` string, required
  - `vid` number, required
  - `description` string
  - `group_id` string

## Response `201`

Created

- object
  - `tags` object[], required
    - `id` string, required
    - `tag_id` string, required
    - `tag_name` string, required
    - `tag_color` string, nullable
  - `vlan` object, required
    - `created_at` string, required
    - `id` string, required
    - `name` string, required
    - `subnet_count` number, required
    - `updated_at` string, required
    - `vid` number, required
    - `description` string, nullable
    - `group_id` string, nullable
    - `group_name` string, nullable

## Other responses

- `400`: Validation Error
- `403`: Feature not available
- `409`: Conflict

---

[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)
