Update SMS trunk
update_sms_trunkUpdate one of the authenticated customer's SMS trunks by id (the uuid returned by list_sms_trunks). Partial update: only the passed fields change; fields have the same semantics as in create_sms_trunk — webhook fields apply to HTTP IN trunks only, email fields to SMTP trunks only, and the trunk type itself cannot be changed. Available placeholders (substituted per incoming SMS): {SMS_TIME} received time, {SMS_SRC_ADDR} sender, {SMS_DST_ADDR} receiver, {SMS_TEXT} message text, {SMS_TEXT_BASE64_ENCODED} message text base64-encoded. Placeholders work in the SMTP subject/message and in HTTP IN query_parameters/headers/body. Returns the updated trunk with its full configuration (passwords are never returned) or a readable error.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | The SMS trunk id (uuid), as returned by list_sms_trunks. | |
| url | No | HTTP IN trunks only: new webhook URL DIDWW pushes each incoming SMS to. | |
| body | No | HTTP IN trunks only: new request body, required for POST/PUT. | |
| name | No | New trunk name (must be unique for the customer). | |
| blocked | No | Whether the trunk is blocked. | |
| headers | No | HTTP IN trunks only: new HTTP headers (string => string). | |
| message | No | SMTP trunks only: new email body text, may use {SMS_*} placeholders. | |
| send_to | No | SMTP trunks only: new recipient email, e.g. "test@example.com" or "Name <test@example.com>". | |
| subject | No | SMTP trunks only: new email subject, may use {SMS_*} placeholders. | |
| priority | No | New routing priority. | |
| body_type | No | HTTP IN trunks only: new body encoding, required for POST/PUT. | |
| http_method | No | HTTP IN trunks only: new HTTP method used for the webhook. | |
| use_smtp_relay | No | SMTP trunks only: use the DIDWW SMTP relay. | |
| query_parameters | No | HTTP IN trunks only: new query string parameters (string => string). |