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

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

# Function: uploadBundleV2()

> **uploadBundleV2**(`client`, `projectSlug`, `bundle`): `Promise`\<[`PushV2Result`](../interfaces/PushV2Result.md)\>

Defined in: [packages/b2c-tooling-sdk/src/operations/mrt/push.ts:321](https://github.com/SalesforceCommerceCloud/b2c-developer-tooling/blob/1dedfc1ffefa01c3d5bff62c8f7e7e682a1a91cd/packages/b2c-tooling-sdk/src/operations/mrt/push.ts#L321)

Uploads a pre-built v2 bundle archive to MRT as multipart/form-data.

Use this if you've already built a v2 bundle with [createBundleV2](createBundleV2.md) and
want to upload it separately.

## Parameters

### client

[`MrtClient`](../../../clients/type-aliases/MrtClient.md)

MRT client instance

### projectSlug

`string`

Project to upload to

### bundle

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

v2 bundle to upload

## Returns

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

Result of the upload

## Throws

Error if the upload fails or the response omits a bundle id
