Developer Preview — This project is in active development. APIs may change. Provide feedback
Skip to content

@salesforce/b2c-tooling-sdk / clients / MrtClient

Type Alias: MrtClient

MrtClient = Client<paths>

Defined in: packages/b2c-tooling-sdk/src/clients/mrt.ts:54

The typed MRT client for Managed Runtime operations.

Common Endpoints

MethodPathDescription
GET/api/projects/List all projects
GET/api/projects/{projectSlug}/Get project details
POST/api/projects/{projectSlug}/builds/Push a bundle
GET/api/projects/{projectSlug}/target/{targetId}/Get target/environment
POST/api/projects/{projectSlug}/target/{targetId}/deploy/Deploy to target

Example

typescript
import { createMrtClient } from '@salesforce/b2c-tooling-sdk/clients';
import { ApiKeyStrategy } from '@salesforce/b2c-tooling-sdk/auth';

const auth = new ApiKeyStrategy(apiKey, 'Authorization');
const client = createMrtClient({}, auth);

// List all projects
const { data, error } = await client.GET('/api/projects/', {});

See

Released under the Apache-2.0 License.