Create a microfrontends group with applications
POST
https://api.vercel.com/v1/microfrontends/groupCreates a microfrontends group and attaches multiple projects in a single request.
Request
import { Vercel } from "@vercel/sdk";
const vercel = new Vercel({ bearerToken: "<YOUR_BEARER_TOKEN_HERE>",});
async function run() { const result = await vercel.microfrontends.createMicrofrontendsGroupWithApplications({ teamId: "team_1a2b3c4d5e6f7g8h9i0j1k2l", slug: "my-team-url-slug", requestBody: { groupName: "MFE Group 1", defaultApp: { projectId: "<id>", }, otherApplications: [ { projectId: "<id>", }, ], }, });
console.log(result);}
run();Response
{ "newMicrofrontendsGroup": { "id": "icfg_1234567890", "slug": "string", "name": "Example Name", "fallbackEnvironment": "string", "enablePolyrepoBranchRouting": "false", "createdAt": "123", "updatedAt": "123" }}AuthorizationbearerToken
Default authentication mechanism