Skip to content
Docs

Disconnects a shared environment variable for a given project

PATCH/__remote/api.vercel.com/v1/env/{id}/unlink/{projectId}
Disconnects a shared environment variable for a given project
/__remote/api.vercel.com/v1/env/{id}/unlink/{projectId}
const response = await fetch('/__remote/api.vercel.com/v1/env/id/unlink/projectId?teamId=string&slug=string', {
method: 'PATCH',
headers: {
'Authorization': 'Bearer YOUR_ACCESS_TOKEN',
'Content-Type': 'application/json',
},
});
const data = await response.json();
console.log(data);
Response
{
"id": "icfg_1234567890"
}
AuthorizationbearerToken

Default authentication mechanism

idstringRequired
The unique ID for the Shared Environment Variable to unlink from the project.
projectIdstringRequired
teamIdstringOptional
The Team identifier to perform the request on behalf of.
slugstringOptional
The Team slug to perform the request on behalf of.
200Success
idstringRequired
400One of the provided values in the request query is invalid.
401The request is not authorized.
403You do not have permission to access this resource.
404Error
410Error