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

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

# Function: cloneRedirectsScapi()

> **cloneRedirectsScapi**(`conn`, `params`): `Promise`\<`void`\>

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

Clones all redirects from a source environment into the environment named by
`environmentId`, via the SCAPI MRT Environments API. Returns 201 Created with
no response body on success — so there is no cloned-count to report.

## Parameters

### conn

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

### params

#### environmentId

`string`

#### sourceEnvironmentId

`string`

#### storefrontId

`string`

## Returns

`Promise`\<`void`\>

## Throws

carrying the HTTP status on a non-2xx response.
