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

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

# Function: updateEnvironmentWithBackend()

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

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

Updates an environment, routing to the SCAPI or legacy backend per the given
preference (with safe `auto` fallback). The SCAPI backend only changes the
display name here (the only field the `mrt env update` command exposes); the
legacy-only configuration fields are forwarded to the legacy backend.

## Parameters

### options

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

## Returns

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