Skip to content

@salesforce/b2c-tooling-sdk / operations/mrt / updateProject

Function: updateProject() ​

updateProject(options, auth): Promise<{ }>

Defined in: packages/b2c-tooling-sdk/src/operations/mrt/project.ts:363

Updates an MRT project.

Parameters ​

options ​

UpdateProjectOptions

Update options

auth ​

AuthStrategy

Authentication strategy (ApiKeyStrategy)

Returns ​

Promise<{ }>

The updated project

Throws ​

Error if update fails

Example ​

typescript
import { ApiKeyStrategy } from '@salesforce/b2c-tooling-sdk/auth';
import { updateProject } from '@salesforce/b2c-tooling-sdk/operations/mrt';

const auth = new ApiKeyStrategy(process.env.MRT_API_KEY!, 'Authorization');

const updated = await updateProject({
  projectSlug: 'my-storefront',
  name: 'My Updated Storefront'
}, auth);

Released under the Apache-2.0 License.