PUT /environments/{environment_id}
Replace an environment's definition, by id or by name.
TypeScript SDKThe npm client, generated from the API spec.Python SDKThe PyPI client, sync and async.
| Method | Path |
|---|---|
| PUT | /v1/environments/{environment_id} |
The whole definition is replaced, live at once — future sessions resolve the new body; running sessions keep the one frozen at their start. Only for environments managed through this API: one defined by a repository file is a 409.
Path parameters
environment_idstringrequired
curl -X PUT "https://api.ellipsis.dev/v1/environments/{environment_id}" \
-H "Authorization: Bearer $ELLIPSIS_API_KEY" \
-H "Content-Type: application/json" \
-d '{"environment":"..."}'import os
from ellipsis import Ellipsis
client = Ellipsis(api_key=os.environ["ELLIPSIS_API_TOKEN"])
result = client.environments.update("...", "...")
print(result)import { Ellipsis } from '@ellipsis-dev/sdk';
const client = new Ellipsis({
apiKey: process.env.ELLIPSIS_API_TOKEN!,
});
const result = await client.environments.update('...', { environment: '...' });
console.log(result);Request
Example request body
{
}
Body parameters
environmentEnvironmentDocumentrequired
The environment's new definition. Replaces the previous one wholesale — this is not a partial update.
Response
Example response · 200
{
}