---
title: "Update network configurations"
method: POST
path: "/network"
tags: ["Administration"]
---

# Update network configurations

`POST /network`

## Request

- Base URL: `https://HOSTNAME:8887/api`
- URL: `https://HOSTNAME:8887/api/network`
- Auth: HTTP bearer
- TypeScript: <https://skmtc.dev/portsip/apis/portsip-pbx-rest-api/docs/network/post.ts> (a function with typed inputs; its response is checked against the schema)

Update network configurations for PortSIP PBX.

## Request body

- object
  - `web_domain` string: The web domain for PortSIP PBX
  - `private_ipv4` string: The private IPv4 of system.
  - `public_ipv4` string: The public IPv4 of system.
  - `enable_ipv6` boolean: Indicates if IPv6 would be enabled.
  - `private_ipv6` string: The private IPv6 of system.
  - `public_ipv6` string: The public IPv6 of system.
  - `primary_dns_server` string: The primary DNS server.
  - `secondary_dns_server` string: The secondary DNS server.

## Response `200`

OK

## Other responses

- `4XX`: Error

---

[API](https://skmtc.dev/portsip/apis/portsip-pbx-rest-api.md) - [All operations](https://skmtc.dev/portsip/apis/portsip-pbx-rest-api/llms.txt) - [OpenAPI document](https://skmtc.dev/portsip/apis/portsip-pbx-rest-api/revisions/577415d4a3d5?raw)
