PUT /environments/{environment_id}
Replace an environment's definition, by id or by name.
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.
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
environment_idstringrequired
environmentEnvironmentConfigrequired
The environment's new definition. Replaces the previous one wholesale — this is not a partial update.