---
editLink: false
lastUpdated: false
---

[@salesforce/b2c-tooling-sdk](../../../modules.md) / [operations/mrt](../index.md) / updateRedirectWithBackend

# Function: updateRedirectWithBackend()

> **updateRedirectWithBackend**(`options`): `Promise`\<[`MrtRedirectResult`](../interfaces/MrtRedirectResult.md)\>

Defined in: [packages/b2c-tooling-sdk/src/operations/mrt/redirect.ts:1209](https://github.com/SalesforceCommerceCloud/b2c-developer-tooling/blob/8fc17d8708d025c83fb0c44ca73198a200605153/packages/b2c-tooling-sdk/src/operations/mrt/redirect.ts#L1209)

Partially updates a redirect, routing to the SCAPI or legacy backend per the
given preference (with safe `auto` fallback). Only the supplied fields change.

The source path is immutable here: the legacy backend keys the redirect by its
`from_path`, so renaming it is not expressible as an update on both backends.

## Parameters

### options

[`UpdateRedirectBackendOptions`](../interfaces/UpdateRedirectBackendOptions.md)

## Returns

`Promise`\<[`MrtRedirectResult`](../interfaces/MrtRedirectResult.md)\>
