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

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

# Function: updateStorefrontScapi()

> **updateStorefrontScapi**(`conn`, `params`): `Promise`\<\{ `project`: [`MrtProjectView`](../interfaces/MrtProjectView.md); `raw`: `unknown`; \}\>

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

Updates a storefront (MRT project) via the SCAPI MRT Storefronts API. Every
field is optional; only supplied fields change. When `sites` is provided it
**replaces** the storefront's full set of assigned sites (not an incremental
update) — pass the complete desired set. SCAPI cannot rename a storefront.

## Parameters

### conn

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

### params

#### allowCookies?

`boolean`

#### preserveProxyUserAgent?

`boolean`

#### sites?

`string`[]

#### ssrArchitecture?

`"x86"` \| `"arm64"` \| `null`

#### ssrRegion?

`"us_east_1"` \| `"us_east_2"` \| `"us_west_1"` \| `"us_west_2"` \| `"ap_south_1"` \| `"ap_south_2"` \| `"ap_northeast_2"` \| `"ap_southeast_1"` \| `"ap_southeast_2"` \| `"ap_southeast_3"` \| `"ap_northeast_1"` \| `"ap_northeast_3"` \| `"ca_central_1"` \| `"eu_central_1"` \| `"eu_central_2"` \| `"eu_west_1"` \| `"eu_west_2"` \| `"eu_west_3"` \| `"eu_north_1"` \| `"eu_south_1"` \| `"sa_east_1"`

#### storefrontId

`string`

## Returns

`Promise`\<\{ `project`: [`MrtProjectView`](../interfaces/MrtProjectView.md); `raw`: `unknown`; \}\>

## Throws

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