---
title: "Assign a wireless LAN to a device interface"
method: POST
path: "/{org_slug}/device-interfaces/{id}/wireless-lans"
tags: ["Devices"]
---

# Assign a wireless LAN to a device interface

`POST /{org_slug}/device-interfaces/{id}/wireless-lans`

## Request

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

Associate a device interface with a wireless LAN and set its role (ap or station)

## Path parameters

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

## Request body

- object
  - `wireless_lan_id` string, required
  - `role` string

## Response `200`

Wireless LAN assigned

- object
  - `ok` unknown, required

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