Edit SMS template
spur_update_sms_templateEdit one of the user's SMS templates and show the updated preview. Pass full text / fallback_body, or replacements (exact find → replace in "text" or "fallback"). Pass fallback_body="" to remove the fallback.
SMS guidance: plain text, ideally one segment (160 GSM characters, or 70 if it uses emoji or other non-GSM characters; longer messages are billed per segment). Identify yourself, keep it conversational, and include opt-out wording ("Reply STOP to opt out") on first-touch messages. Links in texts from unverified numbers can be blocked, so give link-free fallback_body text when the body has a URL. Use merge fields like {{owner_first_name}}, {{property_address}}, {{your_name}} (see spur://merge-variables).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | New template name | |
| text | No | Full replacement SMS body | |
| is_default | No | true = make this the user's default template for its channel | |
| description | No | Internal note about the template; never sent to owners | |
| template_id | Yes | Email or SMS template id (UUID from a Spur list/search tool) | |
| replacements | No | Small edits applied in order instead of resending the full content | |
| fallback_body | No | Link-free text sent instead when links are blocked; "" removes it |