---
title: "Extend a sandbox lifetime"
method: POST
path: "/sandboxes/{id}/extend"
tags: ["Sandboxes"]
---

# Extend a sandbox lifetime

`POST /sandboxes/{id}/extend`

## Request

- Base URL: `https://sandbox-as-a-service.com/v1`
- URL: `https://sandbox-as-a-service.com/v1/sandboxes/{id}/extend`
- Auth: HTTP bearer

Pushes the expiry further out, up to 1440 minutes after creation.

## Request body

- object
  - `additional_minutes` integer

## Response `200`

Updated sandbox.

- Sandbox
  - `object` 'sandbox'
  - `id` string
  - `name` string, nullable
  - `status` 'provisioning' | 'running' | 'deleting' | 'deleted' | 'failed': Lifecycle state. Commands can only run while the sandbox is `running`.
  - `size` 'small' | 'medium' | 'large'
  - `resources` object
    - `vcpu` integer
    - `memory_gb` integer
    - `disk_gb` integer
  - `timeout_minutes` integer
  - `created_at` string, date-time
  - `ready_at` string, date-time, nullable
  - `expires_at` string, date-time, nullable
  - `deleted_at` string, date-time, nullable

## Other responses

- `400`: Invalid request parameters.
- `404`: No sandbox with that id for this account.
- `409`: Sandbox is not running.

---

[API](https://skmtc.dev/sandbox-as-a-service/apis/sandbox-as-a-service-api.md) · [All operations](https://skmtc.dev/sandbox-as-a-service/apis/sandbox-as-a-service-api/llms.txt) · [OpenAPI document](https://skmtc.dev/sandbox-as-a-service/apis/sandbox-as-a-service-api/revisions/4f1ea2cf8333?raw)
