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

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

# Function: createProjectWithBackend()

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

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

Creates a project, routing to the SCAPI or legacy backend per the given
preference (with safe `auto` fallback). Each backend branch validates its own
required inputs: SCAPI needs at least one site (a MrtScapiPreconditionError
so `auto` can fall back to legacy), legacy needs an organization.

## Parameters

### options

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

## Returns

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