---
title: "Update port network"
method: PUT
path: "/device/{deviceId}/ports"
tags: ["Device"]
---

# Update port network

`PUT /device/{deviceId}/ports`

## Headers

- `X-Fields` string, mask

## Request body

- DevicePortsUpdate
  - `ports` DevicePortUpdate[]
    - `enabled` boolean
    - `ipAssignments` integer[], required — IP Assignments IDs currently routed to this port.
    - `nativeVlanId` integer — The unique ID of the port's native vlan, if applicable. Send value `0` to remove the native vlan from this port.
    - `portId` integer, required — The unique ID of the port.

## Response `202`

Accepted

- NetworkTaskDump[]
  - `clientId` integer — Unique ID of the client triggering the task.
  - `deviceId` integer — Unique ID of the target device.
  - `metaData` string — Key value arguments used to trigger the task.
  - `result` string — Success|Pending|Failed. Null value also means Pending.
  - `taskCreated` object — Timestamp of task creation date.
  - `taskId` string — Unique ID of the network task.
  - `taskUpdated` object — Timestamp of most recent activity taken on the network task. This will update multiple times for multi-step tasks.

## Other responses

- `403` — You have not been granted permission to complete this action. Please contact your account manager to grant the proper permission.
- `429` — Request was Rate Limited

---

[API](https://skmtc.net/hivelocity/apis/hivelocity-api.md) · [All operations](https://skmtc.net/hivelocity/apis/hivelocity-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/hivelocity/hivelocity-api/revisions/ee6b717b5015/schema)
