Reference
Merge into
Commit a fork child as the new state of its parent.
POST
Documentation Index
Fetch the complete documentation index at: https://docs.podflare.ai/llms.txt
Use this file to discover all available pages before exploring further.
The parent sandbox id.
A child sandbox id (typically a fork of
parent) whose state should
replace parent’s.What actually happens
Atomically swap: parent’s microVM is destroyed and the winner’s microVM takes over parent’s id. After the call:parent.idis still a valid sandbox id, but it now drives the winner’s underlying VM.winner.idis no longer a live sandbox. The SDK flags thewinnerobject so itsclose()becomes a no-op (prevents double-destroy).- Siblings are NOT touched. If you forked
n=5and one is the winner, the other 4 are still alive — the caller destroys them explicitly.
Idempotency
- Merging the same winner twice: second call returns 404 (winner id gone after first merge).
- Merging a sandbox into itself: 400.

