---
title: "Create a container network"
method: POST
path: "/container/networks"
tags: ["Container"]
---

# Create a container network

`POST /container/networks`

## Request

- Base URL: `https://sylve.lan:8181/api`
- URL: `https://sylve.lan:8181/api/container/networks`
- Auth: API key in header `Authorization`

Create a NAT bridge network, or with a switch, a network attached to that switch

## Request body

- GithubComAlchemillahqSylveInternalInterfacesServicesContainerNetworkRequest
  - `gateway` string
  - `name` string, required
  - `rangeEnd` string
  - `rangeStart` string
  - `subnet` string
  - `switch` string

## Response `200`

Success

- GithubComAlchemillahqSylveInternalAPIResponseGithubComAlchemillahqSylveInternalDbModelsContainerNetwork
  - `data` GithubComAlchemillahqSylveInternalDbModelsContainerNetwork
    - `bridge` string
    - `createdAt` string
    - `gateway` string
    - `id` integer
    - `name` string
    - `rangeEnd` string
    - `rangeStart` string
    - `subnet` string
    - `switchId` integer
    - `switchType` string
    - `updatedAt` string
  - `error` string
  - `message` string
  - `status` string

## Changes

- **2026-11-03** `9565cdd0abf5`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/alchemillahq/apis/sylve-api/changes/container/networks/post.md)

---

[API](https://skmtc.dev/alchemillahq/apis/sylve-api.md) - [All operations](https://skmtc.dev/alchemillahq/apis/sylve-api/llms.txt) - [OpenAPI document](https://skmtc.dev/alchemillahq/apis/sylve-api/revisions/9565cdd0abf5?raw)
