---
title: "Update"
method: PUT
path: "/api/cp/switch/ip/{id}"
tags: ["Switch"]
---

# Update

`PUT /api/cp/switch/ip/{id}`

Update an existing Switch record by ID.

## Path parameters

- `id` integer, required

## Request body

- SwitchInput
  - `id` integer — Id
  - `company_id` integer — Company Id (references company.id)
  - `ip` string, ipv4 — Ip
  - `proxy` string — Proxy
  - `bandwidth` integer — Bandwidth
  - `channels` integer — Channels
  - `cps` integer — Cps
  - `manufacturer` string — Manufacturer
  - `version` string — Version
  - `protocol` string — Protocol
  - `port` string — Port
  - `codec` string — Codec
  - `dial_pattern` string — Dial Pattern
  - `prefix` string, required — Prefix
  - `cli_prefix` string — Cli Prefix
  - `strip` integer, required — Strip
  - `cli_strip` integer, required — Cli Strip
  - `direction` string[] — Direction
  - `user` string — User
  - `pass` string — Pass
  - `from` string — From
  - `rewrite` object — Rewrite
  - `force_nat` integer, required — Force Nat
  - `intercept_reinvite` integer, required — Intercept Reinvite
  - `flags` string, required — Flags
  - `weight` integer — Weight
  - `start_ip` integer — Start Ip
  - `end_ip` integer — End Ip
  - `iso3166_alpha_2` string — Iso 3166 Alpha 2

## Response `200`

Operation completed successfully

- SuccessResponse
  - `status` string — Operation status

## Other responses

- `400` — Bad Request - Invalid parameters or request body
- `401` — Authentication information is missing or invalid
- `403` — Access denied - insufficient permissions or dependency access failure
- `404` — Resource not found
- `409` — Conflict - foreign key or unique constraint violation on write
- `500` — Internal server error

---

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