Assign DIDs to Voice IN Trunk
assign_did_to_trunkAssign one or more of the customer's DIDs (did_ids, max 100 per call) to a Voice IN Trunk so inbound calls route to it. trunk_id accepts ANY trunk id returned by list_trunks — SIP, PSTN, phone.systems™ or a trunk group. Pass trunk_id null (or omit it) to UNASSIGN the listed DIDs instead (they then route inbound calls nowhere). The batch is all-or-nothing: every id must resolve to a DID in the account and every assignment must be valid, otherwise NOTHING is changed and a readable error explains why. Returns the trunk (name and type) plus the assigned/unassigned numbers and count; a number that was already routed elsewhere is reported as re-routed FROM its previous trunk (assigning replaces the existing routing).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| did_ids | Yes | UUIDs of the DIDs to configure (1..100, must all belong to the customer). | |
| trunk_id | No | UUID of the target Voice IN Trunk — any type from list_trunks (SIP, PSTN, phone.systems™ or trunk group). Pass null (or omit) to unassign the DIDs. |