environmentVariables
Create environment variables
Creates new environment variables. Granular scopes are available on Pro plans and above.
post/accounts/{account_id}/env
Request
- Base URLhttps://api.netlify.com/api/v1
- URLhttps://api.netlify.com/api/v1/accounts/{account_id}/env
- AuthOAuth 2Implicit: https://app.netlify.com/authorize
Path parameters
account_idstring required
Scope response to account_id
Query parameters
site_idstring
If provided, create an environment variable on the site level, not the account level
Request body
Response
OK
Changes
No recorded changes to this operation across all 65 revisions of this API.