projects
Edit an environment variable
Changed onEdit a specific environment variable for a given project by passing the environment variable identifier and either passing the project id or name in the URL.
patch/v9/projects/{idOrName}/env/{id}
Request
- Base URL: https://api.vercel.com
- URL: https://api.vercel.com/v9/projects/{idOrName}/env/{id}
- Auth: HTTP bearer
Path parameters
idOrNamestring required
The unique project identifier or the project name
Example:prj_XLKmu1DyR1eY7zq8UgeRKbA7yVLA
idstring required
The unique environment variable identifier
Example:XMbOEya1gUUO1ir4
Query parameters
teamIdstring
Example:team_1a2b3c4d5e6f7g8h9i0j1k2l
The Team identifier to perform the request on behalf of.
slugstring
Example:my-team-url-slug
The Team slug to perform the request on behalf of.
Request body
Example request
{
"key": "GITHUB_APP_ID",
"target": [
"preview"
],
"gitBranch": "feature-1",
"type": "plain",
"value": "bkWIjbnxcvo78",
"customEnvironmentIds": [
"env_1234567890"
],
"comment": "database connection string for production"
}Response
Changes
- info
added the optional property
to the response with the status
- info
- info
added the non-success response with the status
- info