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

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

# Function: createDeploymentScapi()

> **createDeploymentScapi**(`conn`, `params`): `Promise`\<[`CreateDeploymentScapiResult`](../interfaces/CreateDeploymentScapiResult.md)\>

Defined in: [packages/b2c-tooling-sdk/src/operations/mrt/deployment.ts:436](https://github.com/SalesforceCommerceCloud/b2c-developer-tooling/blob/d2e58e4f1db44e0a640eb7f21c14a77b6380b451/packages/b2c-tooling-sdk/src/operations/mrt/deployment.ts#L436)

Creates (queues) a deployment via the SCAPI MRT Deployments API.

## Parameters

### conn

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

### params

#### bundleId

`number`

#### environmentId

`string`

#### storefrontId

`string`

## Returns

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

## Throws

carrying the HTTP status on a non-2xx response
  (including 409 Conflict — the caller decides whether that is fatal).
