---
title: "Create a Network List"
method: POST
path: "/workspace/network_lists"
tags: ["Network Lists"]
---

# Create a Network List

`POST /workspace/network_lists`

Create a new Network List in your account.

## Request body

- NetworkListRequest — A Network List item can be one of the following formats: 1. IP Addresses (IPv4/IPv6): - Simple IPv4: 192.168.0.1 - IPv4 with CIDR: 192.168.0.1/24 - Simple IPv6: 2001:db8:3333:4444:5555:6666:7777:8888 - IPv6 with CIDR: 2001:db8::/32 - IP with expiration date: 192.168.0.1 --LT2025-05-29T12:25:23Z (The expiration date format is --LT followed by ISO8601 date in UTC timezone) 2. Country Codes: - Two-character uppercase alphanumeric country code (ISO 3166-1 alpha-2) - Examples: BR, US, DE, JP 3. Autonomous System Numbers (ASN): - Number composed of digits only - Examples: 1234, 5678, 13335
  - `name` string, required
  - `type` 'asn' | 'countries' | 'ip_cidr', required — * `asn` - ASN * `countries` - Countries * `ip_cidr` - IP/CIDR
  - `items` string[], required
  - `active` boolean

## Response `201`

Network list created successfully.

- NetworkListResponse
  - `state` string
  - `data` NetworkList, required — A Network List item can be one of the following formats: 1. IP Addresses (IPv4/IPv6): - Simple IPv4: 192.168.0.1 - IPv4 with CIDR: 192.168.0.1/24 - Simple IPv6: 2001:db8:3333:4444:5555:6666:7777:8888 - IPv6 with CIDR: 2001:db8::/32 - IP with expiration date: 192.168.0.1 --LT2025-05-29T12:25:23Z (The expiration date format is --LT followed by ISO8601 date in UTC timezone) 2. Country Codes: - Two-character uppercase alphanumeric country code (ISO 3166-1 alpha-2) - Examples: BR, US, DE, JP 3. Autonomous System Numbers (ASN): - Number composed of digits only - Examples: 1234, 5678, 13335
    - `id` integer, required
    - `name` string, required
    - `type` 'asn' | 'countries' | 'ip_cidr', required — * `asn` - ASN * `countries` - Countries * `ip_cidr` - IP/CIDR
    - `items` string[], required
    - `last_editor` string, required
    - `last_modified` string, date-time, required
    - `created_at` string, date-time, required
    - `active` boolean

## Other responses

- `400` — Validation Error
- `401` — Authentication Failed
- `403` — Permission Denied
- `404` — Not Found
- `405` — Method Not Allowed
- `406` — Not Acceptable
- `429` — Throttled
- `500` — Internal Server Error

---

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