Update PSTN Voice IN Trunk
update_pstn_trunkUpdate one of the authenticated customer's PSTN / call-forwarding Voice IN Trunks. Pass the trunk id and ONLY the fields to change; fields have the same semantics as in create_pstn_trunk. Changing destination is confirmation-gated: the preview shows the new destination's per-minute rate (amounts are in USD) — show the price to the user before confirming. Updates without a destination change apply immediately. For SIP trunks use update_sip_trunk; for phone.systems™ trunks use update_phone_systems_trunk.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | UUID of the PSTN Voice IN Trunk to update. | |
| pop | No | DIDWW Point of Presence the trunk is served from. Null unpins the trunk and lets DIDWW pick. | |
| name | No | New friendly name of the Voice IN Trunk. | |
| weight | No | Load-balancing weight among trunk-group members of the same priority; higher is preferred (default 65535). | |
| priority | No | Priority of this trunk; DIDWW contacts the lowest-numbered priority first. Range 0-65535. | |
| cli_format | No | Format of the caller ID sent to the customer equipment (default e164). | |
| cli_prefix | No | Prefix prepended to the caller ID. Letters, digits, "+" and "#" only, up to 7 characters. Null removes the prefix. | |
| description | No | Description of the Voice IN Trunk. Null clears it. | |
| destination | No | New phone number to forward calls to, digits only (e.g. "48452006332"). Confirmation-gated. | |
| capacity_limit | No | Maximum number of simultaneous calls for the Voice IN Trunk. Null lifts the limit. | |
| trunk_group_id | No | Voice IN Trunk Group UUID to assign the trunk to (or null to detach). | |
| ringing_timeout | No | Seconds to wait for a 200 OK after a 18x ringing response before ending the routing attempt with the "Ringing timeout" disconnect code. Null restores the platform default. | |
| confirmation_token | No | Only needed when changing `destination`. Leave empty on the first call — it returns the per-minute rate preview + a confirmation_token and changes nothing; re-call with the token to apply the change. | |
| src_number_list_id | No | Voice IN Number List UUID (from list_voice_in_number_lists) to apply as the caller-ID (source number) filter on this trunk, or null to detach the current one. |