> ## 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.

# supportChatWidgetUpdate

> Change the storefront chat widget's support settings, as the widget settings page saves them. Arguments you omit are unchanged. Returns the settings after the change.

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

## Arguments

**automation** `[SupportChatWidgetAutomationInput](/docs/api-reference/v3/reference/support/support-chat-widget-automation-input)`

**fields**

**expirationMessage** `String`

May be empty. At most 2,000 characters.

**expirationMinutes** `Int`

From 2 to 60, as the settings page allows.

**unresponsiveConversionEnabled** `Boolean`

**unresponsiveConversionWaitSeconds** `Int`

From 60 to 1,859 (30 minutes 59 seconds), as the settings page allows.

**handoff** `[SupportChatWidgetHandoffInput](/docs/api-reference/v3/reference/support/support-chat-widget-handoff-input)`

**fields**

**collectCustomerEmail** `Boolean`

**emailConversionMessage** `String`

Empty sends a built-in message instead. At most 2,000 characters.

**externalEmailMessage** `String`

Null or blank clears it, which is BAD\_USER\_INPUT while forwardToExternalEmail is on. At most 2,000 characters.

**forwardToExternalEmail** `Boolean`

Turning it on needs an externalEmailMessage, given here or already saved; otherwise BAD\_USER\_INPUT.

**liveChatConversionMessage** `String`

Blank restores the default. At most 2,000 characters.

**type** `[SupportChatHandoffType](/docs/api-reference/v3/reference/support/support-chat-handoff-type)`

**supportFeatures** `[SupportChatWidgetSupportFeaturesInput](/docs/api-reference/v3/reference/support/support-chat-widget-support-features-input)`

**fields**

**hidden** `Boolean`

**messagingHeading** `String`

At most 200 characters. Null or blank clears it.

**textUs** `[SupportChatWidgetTextUsInput](/docs/api-reference/v3/reference/support/support-chat-widget-text-us-input)`

**fields**

**buttonEnabled** `Boolean`

**themeBlockEnabled** `Boolean`

## Returns

**supportChatWidgetUpdate** `[SupportChatWidget!](/docs/api-reference/v3/reference/support/support-chat-widget)` *required*

The storefront chat widget's support settings. One per store. Its hours, and whether it hides after them, are supportBusinessHours.

**fields**

**automation** `[SupportChatWidgetAutomation!](/docs/api-reference/v3/reference/support/support-chat-widget-automation)` *required*

**fields**

**expirationMessage** `String!` *required*

What the widget says when it closes a chat.

**expirationMinutes** `Int!` *required*

How many minutes a chat waits for the customer before it closes.

**unresponsiveConversionEnabled** `Boolean!` *required*

Whether a chat the store's team doesn't answer in time is offered a move to email.

**unresponsiveConversionWaitSeconds** `Int!` *required*

How long the team has to answer, in seconds.

**handoff** `[SupportChatWidgetHandoff!](/docs/api-reference/v3/reference/support/support-chat-widget-handoff)` *required*

**fields**

**collectCustomerEmail** `Boolean!` *required*

Whether the widget asks for the customer's email first.

**emailConversionMessage** `String!` *required*

What the widget says when a chat moves to email. Empty sends a built-in message instead.

**externalEmailMessage** `String`

What shoppers are told when forwardToExternalEmail is on, such as the address to write to. Null when none is set. Not used otherwise.

**forwardToExternalEmail** `Boolean!` *required*

Whether a chat handed off by email goes to an outside inbox instead of opening a help desk ticket. It does only with an externalEmailMessage; without one, the chat opens a ticket.

**liveChatConversionMessage** `String!` *required*

What the widget says when a chat moves to live chat.

**type** `[SupportChatHandoffType!](/docs/api-reference/v3/reference/support/support-chat-handoff-type)` *required*

**supportFeatures** `[SupportChatWidgetSupportFeatures!](/docs/api-reference/v3/reference/support/support-chat-widget-support-features)` *required*

**fields**

**hidden** `Boolean!` *required*

Whether the widget hides its support features: messaging the store and the help center. supportBusinessHours can also hide them after hours.

**messagingHeading** `String`

The heading over the chat with the store. Null when none is set; the widget then shows the store's name and Support.

**textUs** `[SupportChatWidgetTextUs!](/docs/api-reference/v3/reference/support/support-chat-widget-text-us)` *required*

**fields**

**buttonEnabled** `Boolean!` *required*

Whether the widget offers a "Text us" button.

**themeBlockEnabled** `Boolean!` *required*

Whether the "Text us to chat" theme block shows where it is placed in the store's theme.

## Errors

Besides the [errors any request can return](https://developers.redo.com/docs/api-reference/v3/errors.md), this operation fails with these codes in `extensions.code`.

| Code | HTTP status | Meaning | Retry |
| - | - | - | - |
| `API_TOKEN_REQUIRED` | `403` | The credential has no API token to attribute the change to, such as a first-party token. Nothing was sent. | Call with a store API token. |
| `BAD_USER_INPUT` | `400` | An argument is invalid, or names something the store doesn't have. The message says which. Nothing was written. | Fix the input the message names, then send it again. |
| `NOT_FOUND` | `404` | An id the request refers to, other than its target, doesn't exist in the store. A missing target returns null instead. | Use an id that exists in the store. |
| `INTERNAL_SERVER_ERROR` | `500` | Something failed on Redo's side. The change may or may not have been made. | Read the record to see whether the change was made before sending it again. A send with an idempotencyKey is safe to retry with the same key. |

## Example

```graphql theme={null}
mutation {
  supportChatWidgetUpdate(automation: { ... }, handoff: { ... }, supportFeatures: { ... }, textUs: { ... })
}
```


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