---
title: "Explain where the workload plane would place an environment (internal, operator-only)"
method: GET
path: "/internal/environments/{environment_id}/placement/explain"
tags: ["Workload Placement"]
---

# Explain where the workload plane would place an environment (internal, operator-only)

`GET /internal/environments/{environment_id}/placement/explain`

## 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}/placement/explain`
- 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

## Response `200`

- PlacementExplanationResponse
  - `environment_id` integer, required
  - `excluded` NodeExclusionDto[], required
    - `excluded` boolean, required: `false` when the node was kept with a warning.
    - `message` string, required
    - `node_id` integer, required
    - `node_name` string, required
    - `reason` string, required: The `Scheduled` condition reason, e.g. `NodeDraining`.
  - `pinned_by` string, nullable: Why the environment is pinned by its volumes, e.g. "pinned to node 0 by volume `data`" (ADR-055 §12). `null` without attached volumes.
  - `placement` integer[], nullable: Where the unified scheduler would put each replica now (`0` = the control plane).
  - `recommended` NodeRecommendationDto[], required: Eligible nodes, best first.
    - `node_id` integer, required
    - `node_name` string, required
    - `reasons` string[], required
    - `score` number, double, required
  - `unschedulable` string, nullable
  - `unschedulable_reason` string, nullable
  - `warnings` string[], required

## Other responses

- `400`: Invalid placement settings
- `401`: Unauthorized
- `403`: Insufficient permissions
- `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/placement/explain/get.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)
