Sandboxes
Extend a sandbox's lifetime
Extend a running Runpod sandbox’s maximum lifetime by setting a new total lifetime measured from creation, within your account’s policy limit.
POST
Sets a new maximum lifetime for a running sandbox.
maxLifetimeSeconds is the new total lifetime measured from the sandbox’s createdAt, the same meaning as on create, so expiresAt becomes createdAt + maxLifetimeSeconds.
A request beyond your account’s maximum lifetime is rejected, and the deadline is left unchanged.
Path parameters
string
required
The sandbox ID.
Body
integer
required
New total lifetime in seconds, measured from
createdAt.Response
Returns the updated sandbox, with the newmaxLifetimeSeconds and expiresAt. See Get a sandbox for all fields.
Errors
Last modified on October 19, 2026