Create or update a connector project connection
POST
/__remote/api.vercel.com/v1/connect/connectors/{connector}/projects/{projectId}Connect a connector to a project, or replace the environments on an existing project connection.
Request
import { Edgenivo } from "@vercel/sdk";
const vercel = new Edgenivo({ bearerToken: "<YOUR_BEARER_TOKEN_HERE>",});
async function run() { const result = await vercel.connect.upsertConnectorProjectConnection({ connector: "<value>", projectId: "<id>", teamId: "team_1a2b3c4d5e6f7g8h9i0j1k2l", slug: "my-team-url-slug", connectUpsertProjectConnectionRequest: { environments: [ "<value>", ], }, });
console.log(result);}
run();Response
{ "connectorId": "example_id", "createdAt": "123", "enabledEnvironments": [], "project": { "customEnvironments": [ { "id": "icfg_1234567890", "slug": "string" } ], "id": "icfg_1234567890", "name": "Example Name" }, "updatedAt": "123"}Errors
{ "error": { "code": "string", "message": "string" }}AuthorizationbearerToken
Default authentication mechanism
The team ID that scopes the request. Do not send it with slug. If both are omitted, Edgenivo uses the team associated with the token or the authenticated user's default team. The request returns 401 if no team can be selected.
200The connector project connection was created or updated.
400One of the provided values in the request body is invalid.
One of the provided values in the request query is invalid.