---
title: "Create network policy"
method: POST
path: "/network-policies"
tags: ["Network Policy"]
---

# Create network policy

`POST /network-policies`

Create a new network policy.

## Request body

- XiqCreateNetworkPolicyRequest
  - `name` string, required — The network policy name
  - `description` string — The network policy description
  - `type` 'NETWORK_ACCESS_AND_SWITCHING' | 'BRANCH_ROUTING' | 'WIRELESS_ACCESS' | 'SWITCHING' | 'NETWORK_ACCESS_AND_SWITCHING_AND_BR' | 'NETWORK_ACCESS_AND_BRANCH_ROUTING' | 'SWITCHING_AND_BRANCH_ROUTING', required — The network policy type

## Response `201`

Created

- XiqNetworkPolicy
  - `id` integer, required — The unique identifier
  - `create_time` string, date-time, required — The create time in UTC (ISO 8601 format)
  - `update_time` string, date-time, required — The last update time in UTC (ISO 8601 format)
  - `org_id` integer — The organization identifier, valid when enabling HIQ feature
  - `name` string, required — The network policy name
  - `description` string — The network policy description
  - `predefined` boolean, required — Whether it is a predefined network policy
  - `type` 'NetworkAccessAndSwitching' | 'BranchRouting' | 'WirelessAccess' | 'Switching' | 'NetworkAccessAndSwitchingAndBR' | 'NetworkAccessAndBranchRouting' | 'SwitchingAndBranchRouting', required — The network policy type.

---

[API](https://skmtc.net/extremecloudiq/apis/extremecloud-iq-api.md) · [All operations](https://skmtc.net/extremecloudiq/apis/extremecloud-iq-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/extremecloudiq/extremecloud-iq-api/versions/5ff7ab84e8e8/schema)
