---
title: "Edit Network Switch for Jail"
method: PUT
path: "/jail/network"
tags: ["Jail"]
---

# Edit Network Switch for Jail

`PUT /jail/network`

Edit a network switch on a jail

## Request body

- GithubComAlchemillahqSylveInternalInterfacesServicesJailEditJailNetworkRequest
  - `defaultGateway` boolean
  - `dhcp` boolean
  - `ip4` integer
  - `ip4gw` integer
  - `ip6` integer
  - `ip6gw` integer
  - `macId` integer
  - `name` string, required
  - `networkId` integer, required
  - `slaac` boolean
  - `switchName` string, required

## Response `200`

Success

- GithubComAlchemillahqSylveInternalAPIResponseAny
  - `data` unknown
  - `error` string
  - `message` string
  - `status` string

## Other responses

- `400` — Bad Request

---

[API](https://skmtc.net/alchemillahq/apis/sylve-api.md) · [All operations](https://skmtc.net/alchemillahq/apis/sylve-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/alchemillahq/sylve-api/revisions/950e51f8af98/schema)
