Update Protection Bypass for Automation
PATCH
/__remote/api.vercel.com/v1/projects/{idOrName}/protection-bypassUpdate the deployment protection automation bypass for a project
/__remote/api.vercel.com/v1/projects/{idOrName}/protection-bypass
const response = await fetch('/__remote/api.vercel.com/v1/projects/idOrName/protection-bypass?teamId=string&slug=string', { method: 'PATCH', headers: { 'Authorization': 'Bearer YOUR_ACCESS_TOKEN', 'Content-Type': 'application/json', }, body: JSON.stringify({ "revoke": { "secret": "string", "regenerate": "true" }, "generate": { "secret": "string", "note": "string" }, "update": { "secret": "string", "isEnvVar": "true", "note": "string" } }),});
const data = await response.json();console.log(data);Response
{ "protectionBypass": "value"}AuthorizationbearerToken
Default authentication mechanism