Skip to main content
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.
Review question: Does a value above the account’s maximum return 400 or 422? Can extend also shorten a sandbox’s lifetime? Remove this box before merging.

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 new maxLifetimeSeconds and expiresAt. See Get a sandbox for all fields.

Errors

Last modified on October 19, 2026