set_sleep_settings
Change a sandbox's idle timeout and deep sleep delay to control when it pauses or stops, reducing resource use.
Instructions
Change sleep settings
Changes idle_timeout and/or deep_sleep_after of an existing sandbox. A new idle_timeout recreates only the socat container (a running sandbox's app is unreachable for a few seconds; an asleep one stays asleep) and applies to the next request's Sablier session. A new deep_sleep_after applies immediately. HTTP PATCH /sandboxes/{name}
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| disk | No | Admin only: the disk use above which the sandbox is flagged (a warning, nothing is stopped). Default SANDBOX_DISK. | |
| name | Yes | ||
| idle_timeout | No | ||
| deep_sleep_after | No |