environmentVariables
Set a value on an environment variable
Updates or creates a new value for an existing environment variable.
patch/accounts/{account_id}/env/{key}
Request
- Base URLhttps://api.netlify.com/api/v1
- URLhttps://api.netlify.com/api/v1/accounts/{account_id}/env/{key}
- AuthOAuth 2Implicit: https://app.netlify.com/authorize
Path parameters
account_idstring required
Scope response to account_id
keystring required
The existing environment variable key name (case-sensitive)
Query parameters
site_idstring
If provided, update an environment variable set on this site
Request body
Response
Created (success)
Changes
No recorded changes to this operation across all 65 revisions of this API.