v0.0.1
OAS 3.0.3
Vercel SDK
The @vercel/sdk
is a type-safe Typescript SDK that allows you to access the resources and methods of the Vercel REST API. Learn how to install it and authenticate with a Vercel access token.
The @vercel/sdk
is a type-safe Typescript SDK that allows you to access the resources and methods of the Vercel REST API. Learn how to install it and authenticate with a Vercel access token.
Production API
Allows creation of an access group project
The Team identifier to perform the request on behalf of.
team_1a2b3c4d5e6f7g8h9i0j1k2l
The Team slug to perform the request on behalf of.
my-team-url-slug
The ID of the project.
prj_ndlgr43fadlPyCtREAqxxdyFK
The project role that will be added to this Access Group.
ADMIN
You do not have permission to access this resource.
import { Vercel } from "@vercel/sdk";
const vercel = new Vercel({
bearerToken: "<YOUR_BEARER_TOKEN_HERE>",
});
async function run() {
const result = await vercel.accessGroups.createAccessGroupProject({
accessGroupIdOrName: "<value>",
teamId: "team_1a2b3c4d5e6f7g8h9i0j1k2l",
slug: "my-team-url-slug",
requestBody: {
projectId: "prj_ndlgr43fadlPyCtREAqxxdyFK",
role: "ADMIN",
},
});
// Handle the result
console.log(result);
}
run();
{
"teamId": "…",
"accessGroupId": "…",
"projectId": "…",
"role": "ADMIN",
"createdAt": "…",
"updatedAt": "…"
}