---
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:423](https://github.com/SalesforceCommerceCloud/b2c-developer-tooling/blob/1dedfc1ffefa01c3d5bff62c8f7e7e682a1a91cd/packages/b2c-tooling-sdk/src/operations/mrt/deployment.ts#L423)

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).
