Create one or more environment variables for a project by passing its key, value, type and target and by specifying the project by either passing the project id or name in the URL. If you include upsert=true as a query parameter, a new environment variable will not be created if it already exists but, the existing variable’s value will be updated.
Default authentication mechanism
The unique project identifier or the project name
"prj_XLKmu1DyR1eY7zq8UgeRKbA7yVLA"
Allow override of environment variable if it already exists
"true"
The Team identifier to perform the request on behalf of.
"team_1a2b3c4d5e6f7g8h9i0j1k2l"
The Team slug to perform the request on behalf of.
"my-team-url-slug"
The name of the environment variable
"API_URL"
The value of the environment variable
"https://api.vercel.com"
The type of environment variable
system, secret, encrypted, plain, sensitive "plain"
The target environment of the environment variable
production, preview, development ["preview"]If defined, the git branch of the environment variable (must have target=preview)
250"feature-1"
A comment to add context on what this environment variable is for
500"database connection string for production"
The custom environment IDs associated with the environment variable