Assign DIDs to SMS trunk
assign_did_to_sms_trunkRoute incoming SMS of one or MANY of the customer's purchased DIDs to an SMS trunk in a single call: did_ids takes 1..100 DID UUIDs and sms_trunk_id the target trunk — or pass null / omit sms_trunk_id to bulk UNASSIGN them (incoming SMS is then disabled). The batch is all-or-nothing: every id must resolve to a DID in the customer account and every DID must pass validation (the SMS trunk must be inbound-capable and each DID in an SMS-enabled group), otherwise NOTHING is changed and the error names the offending ids or number. Returns the SMS trunk (or null when unassigning), the affected DID numbers and their count; a number whose incoming SMS 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, all must belong to the customer). | |
| sms_trunk_id | No | UUID of the SMS trunk to route incoming SMS to. Pass null (or omit) to unassign the DIDs (disable incoming SMS). |