Update Environment
Update an existing environment's configuration.
Path parameters
Headers
Optional header to specify the beta version(s) you want to use.
To use multiple betas, use a comma separated list like beta1,beta2 or specify the header multiple times for each beta.
Optional header to specify the beta version(s) you want to use.
To use multiple betas, use a comma separated list like beta1,beta2 or specify the header multiple times for each beta.
Request body
Example request
{
"description": "Python environment with data-analysis packages."
}Response
Successful Response
Example response
{
"type": "environment",
"id": "env_011CZkZ9X2dpNyB7HsEFoRfW",
"name": "python-data-analysis",
"description": "Python environment with data-analysis packages.",
"config": {
"type": "cloud",
"networking": {
"type": "limited",
"allowed_hosts": [
"api.example.com"
],
"allow_package_managers": true,
"allow_mcp_servers": false
},
"packages": {
"type": "packages",
"pip": [
"pandas",
"numpy"
],
"npm": [],
"apt": [],
"cargo": [],
"gem": [],
"go": []
}
},
"metadata": {},
"archived_at": null,
"created_at": "2026-03-15T10:00:00Z",
"updated_at": "2026-03-15T10:00:00Z"
}Changes
Changed in 4 of the 68 revisions of this API.216
- ▲
response property
descriptionlist-of-types was widened by adding typesnullto media typeapplication/jsonof response200response-property-list-of-types-widened
This revision also has 2 changes that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog
- ▲
- ▲
added to the
response propertyoneOflist for the response statusresponse-property-one-of-added
- ○
added the new optional request property
new-optional-request-property
- ○
added
self_hosteddiscriminator mapping keys to the/request propertyrequest-property-discriminator-mapping-added
- ○
added to the
/request propertyoneOflistrequest-property-one-of-added
- ○
added the optional property
to the response with the statusresponse-optional-property-added
- ○
added
self_hosteddiscriminator mapping keys to theresponse property for the response statusresponse-property-discriminator-mapping-added
- ▲
- ●
deleted the
cookierequest parametersessionKeyrequest-parameter-removed
- ●
- ○
endpoint added
endpoint-added
- ○