POST /sandbox creates a sandbox. The create names one source and sets the rest of the sandbox’s parts, each described in Composition. The response is 201 with the sandbox in starting.
The request below creates a 2 vCPU sandbox from the official Python image. The CLI waits until the sandbox is running and prints its ID.
Output
Batch Create
POST /sandbox/batch creates up to 10 sandboxes of one definition. The body is a create body with a count. from is allowed.
Request
200 with one entry per item, and the totals.
Output
index counts the items from 1, and item i of a named batch is <name>-<i>.
A batch past the quota is refused whole with 429 quota_exceeded. A batch no host admits is refused with 503 no_capacity.