---
title: "Pull the default sandbox image on every eligible host (or one), so the first sandbox there starts without a multi-gigabyte download, and keep those hosts prepared across upgrades. Saves the policy of every host at once and returns; the hosts are asked to pull in the background and their progress is read from the GET. Admin only."
method: POST
path: "/v1/sandboxes/image-preparation"
tags: ["Sandboxes"]
---

# Pull the default sandbox image on every eligible host (or one), so the first sandbox there starts without a multi-gigabyte download, and keep those hosts prepared across upgrades. Saves the policy of every host at once and returns; the hosts are asked to pull in the background and their progress is read from the GET. Admin only.

`POST /v1/sandboxes/image-preparation`

## Request

- Base URL: `/api` (relative, and the document was published on a file host, not at the API’s origin)
- URL: `/api/v1/sandboxes/image-preparation`
- Auth: HTTP bearer

## Request body

- PrepareSandboxImagesBody, nullable: Start preparing sandbox hosts.
  - `node_id` integer, nullable: The host to prepare: a node id, or `0` for the control plane. Omitted or `null`: every host eligible for sandbox placement.

## Response `202`

Preparation started on these hosts

- PrepareSandboxImagesResponse: The hosts a "prepare" was accepted for.
  - `node_ids` integer[], required: The hosts now kept prepared and asked to pull (node id, `0` for the control plane). Their progress is read from `GET /v1/sandboxes/image-preparation`.

## Other responses

- `401`: Unauthorized
- `403`: Administrator role required
- `404`: No such host
- `415`: A body was sent without a JSON Content-Type
- `422`: The body is not valid, or the host (or every host) cannot take sandboxes
- `500`: The preparation could not be recorded

## Changes

- **2026-11-19** `fa7fe1033472`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/gotempsh/apis/temps/changes/v1/sandboxes/image-preparation/post.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)
