Create a microfrontends group with applications
POST
/__remote/api.vercel.com/v1/microfrontends/groupCreates a microfrontends group and attaches multiple projects in a single request.
/__remote/api.vercel.com/v1/microfrontends/group
const response = await fetch('/__remote/api.vercel.com/v1/microfrontends/group?teamId=string&slug=string', { method: 'POST', headers: { 'Authorization': 'Bearer YOUR_ACCESS_TOKEN', 'Content-Type': 'application/json', }, body: JSON.stringify({ "groupName": "MFE Group 1", "defaultApp": { "projectId": "example_id", "defaultRoute": "string" }, "otherApplications": [ { "projectId": "example_id", "defaultRoute": "string" } ] }),});
const data = await response.json();console.log(data);Response
{ "newMicrofrontendsGroup": { "createdAt": "123", "enablePolyrepoBranchRouting": "false", "fallbackEnvironment": "string", "id": "icfg_1234567890", "name": "Example Name", "slug": "string", "updatedAt": "123" }}AuthorizationbearerToken
Default authentication mechanism