Application - Environment
Overwrite Variables
Overwrite environment variables with the new values.
PUT
Overwrite Variables
The API key for your account. You can find this in your account settings.
envs object wipes every variable, which makes this the endpoint to use for a full reset rather than an incremental change.
The same limits as other environment variable endpoints apply: up to 256 variables per application, 1024 characters per key, 4096 per value. Static applications aren’t supported and return an error, and on workspace-shared applications the caller needs the Administrator role or ownership.
If you only need to change a few variables without touching the rest, use Add/Edit Variables instead, or Remove Variables to delete specific keys.
Parameters
The application ID.
The key and value variables you want on the environment.
Response
Indicates whether the call was successful..
success if successful, error if not.The key and value of all environment variables you defined.
Common errors
| Code | HTTP | Meaning |
|---|---|---|
STATIC_APP_ENV_NOT_SUPPORTED | 400 | The application is static; static apps don’t support environment variables. |
INVALID_ENV_CONTENT | 400 | envs is missing, not an object, or an array. |
TOO_MANY_ENV_VARS | 400 | The new set would exceed 256 environment variables. |
ENV_NAME_TOO_LONG | 400 | A variable key exceeds 1024 characters. |
ENV_CONTENT_TOO_LONG | 400 | A variable value exceeds 4096 characters. |
Overwrite Variables

