---
title: "Replace Trunk"
method: PUT
path: "/v4/accounts/{voip_id}/trunks/{id}"
tags: ["Trunks"]
---

# Replace Trunk

`PUT /v4/accounts/{voip_id}/trunks/{id}`

## Request

- Base URL: `https://api.phone.com`
- URL: `https://api.phone.com/v4/accounts/{voip_id}/trunks/{id}`
- Auth: HTTP bearer

Replace parameters in a trunk

## Path parameters

- `voip_id` integer, required
- `id` integer, required

## Request body

- Trunk
  - `name` string, required: Name of Trunk
  - `uri` unknown, required
  - `max_concurrent_calls` integer, nullable: Max concurrent calls. Default is 10
  - `max_minutes_per_month` integer, nullable: Max minutes per month. Default is 750.
  - `max_call_duration` integer, nullable: Max call duration. Default is 10800
  - `codecs` string[], nullable: Custom audio codec configuration

## Response `200`

OK

- object

## Other responses

- `400`: Bad Request
- `401`: Unauthorized
- `402`: Payment Required
- `403`: Forbidden
- `404`: Not Found
- `409`: Conflict
- `422`: Validation failed
- `429`: Too Many Requests
- `500`: Internal Server Error

---

[API](https://skmtc.dev/phone/apis/phoenix-api-by-phone-com.md) · [All operations](https://skmtc.dev/phone/apis/phoenix-api-by-phone-com/llms.txt) · [OpenAPI document](https://skmtc.dev/phone/apis/phoenix-api-by-phone-com/revisions/70c6c9ab8d8f?raw)
