---
title: "Update SIP Trunk"
method: PUT
path: "/user/phone-numbers/sip-trunks/{id}"
tags: ["SIP Trunks"]
---

# Update SIP Trunk

`PUT /user/phone-numbers/sip-trunks/{id}`

## Request

- Base URL: `https://app.famulor.de/api`
- URL: `https://app.famulor.de/api/user/phone-numbers/sip-trunks/{id}`
- Auth: HTTP bearer

Update an existing SIP trunk configuration in Famulor via API. Change credentials, routing rules and assigned phone numbers for your AI voice telephony.

[Docs](https://docs.famulor.io/api-v1/sip-trunks/update)

## Path parameters

- `id` integer, required

## Request body

- object
  - `phone_number` string: The SIP extension or phone number (1-15 characters)
  - `nickname` string: A short, human-friendly label for the trunk. Maximum 50 characters. Send `null` to clear it.
  - `sip_username` string: Username for SIP authentication (3-128 characters)
  - `sip_password` string: Password for SIP authentication (minimum 3 characters)
  - `sip_address` string: The SIP server address without port
  - `sip_calling_format` string: The outbound calling number format: `+e164`, `e164`, or `national`
  - `inbound_authorization_type` string: How inbound calls are authenticated: `auth` or `ip`. When switching to `ip`, you must also provide `allowed_inbound_ips`. When switching to `auth`, any existing IP whitelist is cleared.
  - `allowed_inbound_ips` unknown[]: Array of IP addresses allowed for inbound calls. **Required** when `inbound_authorization_type` is set to `ip`.
    - unknown
  - `country_code` string: ISO 3166-2 country code
  - `outbound_proxy` boolean: Route outbound calls through a fixed IP address

## Response `200`

OK

- object
  - `message` string: Success message
  - `data` object: The updated SIP trunk object (same fields as [Get SIP trunk](/en/api-reference/sip-trunks/get))

## Other responses

- `401`: Fehlender oder ungültiger API-Key.
- `404`: Not Found
- `422`: Validation Error
- `500`: Provisioning Error

---

[API](https://skmtc.dev/famulor/apis/famulor-api.md) · [All operations](https://skmtc.dev/famulor/apis/famulor-api/llms.txt) · [OpenAPI document](https://skmtc.dev/famulor/apis/famulor-api/revisions/3b938c370721?raw)
