@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
| Method | Path | Description |
|---|---|---|
| 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
- createMrtClient for instantiation
- MRT Admin API Reference