---
title: "Change an environment's workload isolation (internal, operator-only)"
method: PUT
path: "/internal/environments/{environment_id}/workload-isolation"
tags: ["Workload Placement"]
---

# Change an environment's workload isolation (internal, operator-only)

`PUT /internal/environments/{environment_id}/workload-isolation`

## Request

- Base URL: `/api` (relative, and the document was published on a file host, not at the API’s origin)
- URL: `/api/internal/environments/{environment_id}/workload-isolation`
- Auth: HTTP bearer

An ADR-055 migration control for operators and the CLI; the console does
not show it. Environments default to `legacy` and need no change here.

## Path parameters

- `environment_id` integer, required

## Request body

- SetWorkloadIsolationRequest
  - `workload_isolation` 'process' | 'micro_vm', required: `process` (a container, the default and the rollback) or `micro_vm` (a Firecracker microVM; placed only on a node whose runtime provides it, refused with the scheduler's reason otherwise). Honoured only when the environment's `workload_mode` is `enforce`.

## Response `200`

- WorkloadIsolationResponse
  - `applies` boolean, required: Whether the setting takes effect: only `enforce` deployments run through the plane, so `legacy` and `shadow` keep a container.
  - `environment_id` integer, required
  - `workload_isolation` 'process' | 'micro_vm', required

## Other responses

- `400`: Invalid isolation
- `401`: Unauthorized
- `403`: Instance admin required
- `404`: Environment not found
- `500`: Storage failed

## Changes

- **2026-11-09** `12896146b193`: 5 breaking
  - removed the required property `extensions` from the response with the `400` status
  - removed the required property `extensions` from the response with the `401` status
  - removed the required property `extensions` from the response with the `403` status
  - removed the required property `extensions` from the response with the `404` status
  - …1 more
- **2026-10-28** `b8d51a990805`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/gotempsh/apis/temps/changes/internal/environments/:environment_id/workload-isolation/put.md)

---

[API](https://skmtc.dev/gotempsh/apis/temps.md) - [All operations](https://skmtc.dev/gotempsh/apis/temps/llms.txt) - [OpenAPI document](https://skmtc.dev/gotempsh/apis/temps/revisions/3b040526eb43?raw)
