Change how a site texts
update_site_messages
Turns texting on or off for a site, switches test mode, or sets the countries it may text.
Send only what changes. enabled false refuses every text from the site until it is turned back on. testMode false makes texts real: they reach real people and cost credits, and it needs a paid plan. countries replaces the whole list, up to 5 countries on a paid plan, and a text to any other country is refused. list_site_message_countries finds the codes. allCountries true picks every country Sent texts in one go, and is refused when the site's plan allows fewer countries than that. Send countries or allCountries, not both. The tool tells the client to ask you first before it turns texting off or test mode off. See Turn texting on.
Inputs
| Input | Type | Required | Description |
|---|---|---|---|
projectId |
string | Yes | The site id. |
enabled |
boolean | No | Turn texting on or off. |
testMode |
boolean | No | True to only check texts, false to send real ones. |
countries |
array of strings | No | Every ISO country code the site may text, replacing the list. |
allCountries |
boolean | No | True to pick every country Sent texts, when the plan allows that many. |