v14
latestOpenAPI 3.0.32026-08-04377889.4 MBprojects
Edit an environment variable
Edit 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}
Path parameters
idOrNamestring required
The unique project identifier or the project name
Example:prj_XLKmu1DyR1eY7zq8UgeRKbA7yVLA
The unique project identifier or the project name
idstring required
The unique environment variable identifier
Example:XMbOEya1gUUO1ir4
The unique environment variable identifier
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"
}