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

# notificationSlackRoutesUpdate

> Set the Slack channels each listed kind of notification posts to. Kinds you don't list are unchanged. Fails with BAD_USER_INPUT, changing nothing, when a kind is listed twice, can't post to Slack for this store, or a channel isn't linked to it. Draws on the same Slack quotas as reading `slack`, per linked channel, failing with THROTTLED beyond the store's or when Slack reads are busy across Redo; a call that fails gives its share back. Returns the Slack settings after the change.

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

## Arguments

**routes** `[\[NotificationSlackRouteInput!\]!](/docs/api-reference/v3/reference/notifications/notification-slack-route-input)` *required*

**fields**

**channelExternalIds** `[String!]!` *required*

Slack's ids of channels linked to the store, the `externalReference.externalId` of `notificationSettings.slack.channels`. Empty stops posting the kind to Slack.

**kind** `[NotificationKind!](/docs/api-reference/v3/reference/notifications/notification-kind)` *required*

The kind of notification to route.

## Returns

**notificationSlackRoutesUpdate** `[NotificationSlackSettings!](/docs/api-reference/v3/reference/notifications/notification-slack-settings)` *required*

Which Slack channels Redo posts the store's team notifications to.

**fields**

**channels** `[\[NotificationSlackChannel!\]!](/docs/api-reference/v3/reference/notifications/notification-slack-channel)` *required*

The Slack channels linked to the store. Redo links them; routes can only use these.

**fields**

**botIsMember** `Boolean`

Whether Redo's Slack app is in the channel. Notifications routed to a channel it isn't in don't post until someone adds it there. Null when Slack couldn't be read.

**externalReference** `[ExternalReference!](/docs/api-reference/v3/reference/common/external-reference)` *required*

The channel in Slack: provider `slack`, and Slack's channel id, such as `C0123ABCD`, as `externalId`.

**fields**

**externalId** `String!` *required*

The id the provider's current API accepts. For Shopify that is the gid, such as gid://shopify/Product/123.

**name** `String`

The record's display name in that system, when known.

**provider** `String!` *required*

The other system, in lowercase, such as shopify or recharge.

**type** `String`

The kind of record when the provider holds several for one entity, such as product or variant. Null when it holds one.

**name** `String`

The channel's name, without the #. Null when Slack couldn't be read.

**routes** `[\[NotificationSlackRoute!\]!](/docs/api-reference/v3/reference/notifications/notification-slack-route)` *required*

One route per kind of notification the store can post to Slack. Empty when the store has none: it has none of the products those kinds come from, such as Commerce Agent or the warehouse.

**fields**

**channels** `[\[NotificationSlackChannel!\]!](/docs/api-reference/v3/reference/notifications/notification-slack-channel)` *required*

Empty when the kind isn't posted to Slack.

**fields**

**botIsMember** `Boolean`

Whether Redo's Slack app is in the channel. Notifications routed to a channel it isn't in don't post until someone adds it there. Null when Slack couldn't be read.

**externalReference** `[ExternalReference!](/docs/api-reference/v3/reference/common/external-reference)` *required*

The channel in Slack: provider `slack`, and Slack's channel id, such as `C0123ABCD`, as `externalId`.

**name** `String`

The channel's name, without the #. Null when Slack couldn't be read.

**kind** `[NotificationKind!](/docs/api-reference/v3/reference/notifications/notification-kind)` *required*

The kind of notification.

## 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 neither an API token nor a team member to attribute the change to, such as a first-party service's token, or is a merchant-app session, which can't make this write. Nothing was sent. | Call with a store API token, or with a credential that acts for a team member: the public MCP's, or a merchant-app session's for a write that accepts one. |
| `FORBIDDEN` | `403` | The team member the change is made for doesn't have the permission it needs. Nothing was written. | Ask a store admin to grant the permission, or 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. |
| `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 {
  notificationSlackRoutesUpdate(routes: { ... })
}
```


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