---
title: "Update a trunk."
method: PUT
path: "/trunks/{id}"
tags: ["Trunk"]
---

# Update a trunk.

`PUT /trunks/{id}`

Updates the details of an existing trunk and returns the updated trunk's information.

## Path parameters

- `id` string, required

## Request body

- object
  - `name` string, required
  - `detail` string, required
  - `auth_types` RegistrarManagerAuthType[], required
  - `username` string, required
  - `password` string, required
  - `allowed_ips` string[], required

## Response `200`

The updated trunk details.

- RegistrarManagerTrunk
  - `id` string, uuid — The unique identifier of the trunk. Returned from the `POST /trunks` or `GET /trunks` response.
  - `customer_id` string, uuid — The unique identifier of the customer who owns this trunk. Returned from the `GET /customers` response.
  - `name` string — Display name of the trunk.
  - `detail` string — Detailed description of the trunk.
  - `domain_name` string — The SIP domain for this trunk.
  - `auth_types` RegistrarManagerAuthType[] — List of authentication methods for this trunk.
  - `username` string — The SIP username for authentication.
  - `password` string — The SIP password for authentication.
  - `allowed_ips` string[] — List of IP addresses allowed for IP-based authentication.
  - `tm_create` string, date-time — The creation timestamp.
  - `tm_update` string, date-time — The last update timestamp.
  - `tm_delete` string, date-time — The deletion timestamp.

## Other responses

- `400` — Invalid request (INVALID_ARGUMENT).
- `401` — Authentication required (UNAUTHENTICATED).
- `403` — Insufficient permission (PERMISSION_DENIED).
- `404` — Resource not found (NOT_FOUND).
- `500` — Internal error (INTERNAL).

---

[API](https://skmtc.net/voipbin/apis/voipbin-api.md) · [All operations](https://skmtc.net/voipbin/apis/voipbin-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/voipbin/voipbin-api/versions/79e779080bcc/schema)
