---
title: "Update port configuration"
method: PUT
path: "/metered/networks/{network}/users/{id}/ports"
tags: ["Sub-Users"]
---

# Update port configuration

`PUT /metered/networks/{network}/users/{id}/ports`

## Path parameters

- `network` string, required
- `id` integer, required

## Request body

- object
  - `ports` MeteredUserPortConfig[]
    - `location` string — ISO 3166-1 alpha-2 country code
    - `range_index` integer

## Response `200`

OK

- MeteredUser
  - `id` integer
  - `account_id` integer
  - `name` string
  - `password` string
  - `network` string
  - `status` string
  - `bytes_quota` integer
  - `bytes_used` integer
  - `auto_lock` integer — Unix timestamp after which the user is auto-locked (0 = disabled)
  - `binds` object[]
    - `addr` string
  - `ports` MeteredUserPortConfig[]
    - `location` string — ISO 3166-1 alpha-2 country code
    - `range_index` integer
  - `created_at` integer
  - `updated_at` integer

---

[API](https://skmtc.dev/proxiware/apis/proxiware-api.md) · [All operations](https://skmtc.dev/proxiware/apis/proxiware-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/proxiware/proxiware-api/revisions/4e98e5b8cc44/schema)
