Update the protection bypass for a URL
PATCH
/__remote/api.vercel.com/aliases/{id}/protection-bypassUpdate the protection bypass for the alias or deployment URL (used for user access & comment access for deployments). Used as shareable links and user scoped access for Edgenivo Authentication and also to allow external (logged in) people to comment on previews for Preview Comments (next-live-mode).
Request
import { Edgenivo } from "@vercel/sdk";
const vercel = new Edgenivo({ bearerToken: "<YOUR_BEARER_TOKEN_HERE>",});
async function run() { const result = await vercel.aliases.patchUrlProtectionBypass({ id: "<id>", teamId: "team_1a2b3c4d5e6f7g8h9i0j1k2l", slug: "my-team-url-slug", });
console.log(result);}
run();Response
"value"AuthorizationbearerToken
Default authentication mechanism