> ## Documentation Index
> Fetch the complete documentation index at: https://developers.redo.com/llms.txt
> Use this file to discover all available pages before exploring further.

# smsMarketingSettingsUpdate

> Change the store's SMS marketing settings, the same ones the Redo app's SMS marketing settings page saves. Only the fields you pass change. Returns the settings after the change. BAD_USER_INPUT (400) for a null where it isn't allowed, a subdomain that isn't one label, a number that isn't one of the store's marketing numbers, or a country listed twice; nothing is saved then.

**Required scopes:** [`marketing_settings_write`](https://developers.redo.com/docs/api-reference/v3/reference/scopes#scope-marketing_settings_write)

**Store must have one of:** `EMAIL_SMS`

## Arguments

**input** `[SmsMarketingSettingsUpdateInput!](/docs/api-reference/v3/reference/marketing/sms-marketing-settings-update-input)` *required*

The settings to change.

**fields**

**countryPhoneNumbers** `[\[SmsMarketingCountryPhoneNumberInput!\]](/docs/api-reference/v3/reference/marketing/sms-marketing-country-phone-number-input)`

Replaces the whole list of which number texts each country. Each country may appear once. Not null; an empty list removes every country's number, and each country then uses the store's oldest verified marketing number. Sends pick up a change within about a minute.

**fields**

**country** `[CountryCode!](/docs/api-reference/v3/reference/common/country-code)` *required*

The customers' country.

**phoneNumber** `String!` *required*

One of the store's marketing numbers, exactly as `phoneNumbers` lists it.

**excludeTexasSegment** `Boolean`

Whether Texas recipients are left out of SMS campaigns and automations. Not null. Campaigns and automations already set up aren't changed.

**externalProvider** `[SmsMarketingProvider](/docs/api-reference/v3/reference/marketing/sms-marketing-provider)`

The provider Redo checks for SMS subscriptions before sending Recover texts. Null clears it. Any provider can be chosen, connected or not, as in the Redo app; Recover only works as intended once it is connected.

**linkShortenerOmitProtocol** `Boolean`

Whether shortened links leave out `https://`. Not null. New shortened links can keep the old subdomain or format for up to 3 minutes after a change.

**linkShortenerSubdomain** `String`

The subdomain of shortened links: one label of letters, numbers and inner hyphens, at most 63 characters, like `mystore`. Anything else is BAD\_USER\_INPUT. Null or an empty string clears it. Redo doesn't check whether another store uses it. New shortened links can keep the old subdomain or format for up to 3 minutes after a change.

**smsStoreName** `String`

The store name at the start of every marketing text. Null or an empty string clears it, and texts then use the store's name.

## Returns

**smsMarketingSettingsUpdate** `[SmsMarketingSettings!](/docs/api-reference/v3/reference/marketing/sms-marketing-settings)` *required*

The settings on the Redo app's SMS marketing settings page: how marketing texts are signed and linked, who they leave out, the external provider Recover checks, and which number texts each country.

**fields**

**countryPhoneNumbers** `[\[SmsMarketingCountryPhoneNumber!\]!](/docs/api-reference/v3/reference/marketing/sms-marketing-country-phone-number)` *required*

The number that texts each country. A country left out uses the store's oldest verified marketing number.

**fields**

**country** `[CountryCode!](/docs/api-reference/v3/reference/common/country-code)` *required*

The customers' country.

**phoneNumber** `String!` *required*

The number, in E.164 format.

**excludeTexasSegment** `Boolean!` *required*

Whether Texas recipients are left out of SMS campaigns and automations.

**externalProvider** `[SmsMarketingProviderSetting](/docs/api-reference/v3/reference/marketing/sms-marketing-provider-setting)`

The provider Redo checks for SMS subscriptions before sending Recover texts, with whether it is connected. Null when none is chosen.

**fields**

**connectionStatus** `[SmsMarketingProviderConnectionStatus!](/docs/api-reference/v3/reference/marketing/sms-marketing-provider-connection-status)` *required*

Whether Recover can use the provider.

**provider** `[SmsMarketingProvider!](/docs/api-reference/v3/reference/marketing/sms-marketing-provider)` *required*

The provider.

**linkShortenerOmitProtocol** `Boolean!` *required*

Whether shortened links leave out `https://`, which saves 8 characters per link.

**linkShortenerSubdomain** `String`

The subdomain of shortened links: `mystore` makes `mystore.redo.link`. Null when unset.

**phoneNumbers** `[\[SmsMarketingPhoneNumber!\]!](/docs/api-reference/v3/reference/marketing/sms-marketing-phone-number)` *required*

The store's marketing numbers, the ones `countryPhoneNumbers` can use.

**fields**

**originatingCountry** `[CountryCode](/docs/api-reference/v3/reference/common/country-code)`

The country the number belongs to. Null when Redo stores a value that isn't a country code.

**phoneNumber** `String!` *required*

The number, in E.164 format.

**smsStoreName** `String`

The store name at the start of every marketing text. Null when unset, and texts then use the store's name.

## Example

```graphql theme={null}
mutation {
  smsMarketingSettingsUpdate(input: { ... }) {
    excludeTexasSegment
    linkShortenerOmitProtocol
    linkShortenerSubdomain
    smsStoreName
  }
}
```


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.