# update_site_messages

Source: https://modulify.ai/docs/mcp/messages/update-site-messages

Turns texting on or off for a site, or sets the countries it may text.

- Title: Change how a site texts
- Scope: `config:write`
- Access: Makes changes

Send only what changes. Texting is on for every site until someone turns it off, and `enabled` false refuses every text from the site until it is turned back on. `countries` replaces the whole list, up to 5 countries on Pro, and a text to any other country is refused. `list_site_message_countries` finds the codes. `allCountries` true picks every country texts can go to in one go, and is refused when the site's plan allows fewer countries than that. Send `countries` or `allCountries`, not both. Texts to US numbers need a Pro plan and the site's business registered with US carriers first, with `register_site_message_business`, and then go out from a US number of the site's own, see [US texting](https://modulify.ai/docs/built-in/messages#us-texting). The tool tells the client to ask you first before it adds `US` and before it turns texting off. See [Turn texting off and on](https://modulify.ai/docs/built-in/messages#turn-texting-off-and-on).

## Inputs

| Input | Type | Required | Description |
| --- | --- | --- | --- |
| `projectId` | string | Yes | The site id. |
| `enabled` | boolean | No | Turn texting on or off. |
| `countries` | array of strings | No | Every ISO country code the site may text, replacing the list. |
| `allCountries` | boolean | No | True to pick every country texts can go to, when the plan allows that many. |