Update the protection bypass for a URL | Vercel REST API

Update the protection bypass for a URL

PATCH https://api.vercel.com/aliases/{id}/protection-bypass

Update 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 Vercel Authentication and also to allow external (logged in) people to comment on previews for Preview Comments (next-live-mode).

Example Request

const response = await fetch('https://api.vercel.com/aliases/id/protection-bypass?teamId=string&slug=string', {
  method: 'PATCH',
  headers: {
    'Authorization': 'Bearer YOUR_ACCESS_TOKEN',
    'Content-Type': 'application/json',
  },
  body: JSON.stringify({
    "ttl": "123",
    "revoke": {
      "secret": "string",
      "regenerate": "true"
    }
  }),
});

const data = await response.json();
console.log(data);

Response

"value"

Authentication

Authorization bearerToken
Default authentication mechanism.

Path parameters

Query parameters

Body

Content-Type: application/json

Response

200 Success

Errors