---
title: "Disconnects a shared environment variable for a given project"
method: PATCH
path: "/v1/env/{id}/unlink/{projectId}"
tags: ["environment"]
---

# Disconnects a shared environment variable for a given project

`PATCH /v1/env/{id}/unlink/{projectId}`

Disconnects a shared environment variable for a given project

## Path parameters

- `id` string, required — The unique ID for the Shared Environment Variable to unlink from the project.
- `projectId` string, required

## Query parameters

- `teamId` string
- `slug` string

## Response `200`

- object
  - `id` string, required

## Other responses

- `400` — One of the provided values in the request query is invalid.
- `401` — The request is not authorized.
- `403` — You do not have permission to access this resource.
- `410`

---

[API](https://skmtc.net/vercel/apis/api.md) · [All operations](https://skmtc.net/vercel/apis/api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/vercel/api/versions/61d1ba3f6dac/schema)
