Update an environment
PATCH
Rename it, add or replace variables with env, remove them with unset. Variables left out keep their values. Sandboxes already started keep the values they started with.
Authorization
AuthorizationheaderrequiredBearer YOUR_API_KEY. Create a key in the dashboard.
Path parameters
environmentIdstringrequiredSandbox environment ID.
Body
application/json
namestringLimitsmax length 64envobjectVariables to add or replace. A variable left out keeps its value.
1 properties
{key}string
unsetstring[]Variables to remove.
Responses
200Updated.
environmentobjectrequiredA named set of environment variables to start sandboxes with. Values are encrypted at rest and never returned.
5 properties
idstringrequirednamestringrequiredvariablesobject[]requiredEach variable's name and the last four characters of its value.
2 properties
keystringrequiredlast4stringrequired
createdAtstring<date-time>requiredupdatedAtstring<date-time>required
400Invalid name or variables, or an empty body.
codestringrequiredmessagestringrequireddetailsobject
401Unauthorized.
codestringrequiredmessagestringrequireddetailsobject
404Environment not found, or it belongs to another project.
codestringrequiredmessagestringrequireddetailsobject
409`conflict`: another environment has that name.
codestringrequiredmessagestringrequireddetailsobject