Skip to Content
Homemade
Dashboard

Extend a sandbox

PATCH
/api/sandboxes/{sandboxId}

Sets how long the sandbox lives from now: ttlMinutes, at most 1440 (24 hours).

Authorization

apiKey
headerAuthorizationBearer <hmk_…>

An API key from the dashboard or homemade api-key create.

Path Parameters

sandboxId*string

Request Body

application/json
  1. body
ttlMinutes*integer

Minutes from now until the sandbox is deleted. At most 1440.

Range1 <= value <= 1440

Response Body

The sandbox with its new deletion time.

application/json
  1. response
sandbox*

A throwaway VM. It never sleeps and is deleted when its time runs out.

Example Request
curl -X PATCH 'https://api.homemade.dev/api/sandboxes/string' \  -H 'Content-Type: application/json' \  -d '{  "ttlMinutes": 1}'
Example Response
{  "sandbox": {    "createdAt": "2019-08-24T14:15:22Z",    "createdBy": {      "apiKeyName": "string",      "clientName": "string",      "userName": "string",      "via": "dashboard"    },    "envNames": [      "string"    ],    "expiresAt": "2019-08-24T14:15:22Z",    "id": "string",    "projectId": "string",    "projectName": "string",    "region": "string",    "size": "string",    "startedAt": "2019-08-24T14:15:22Z",    "state": "queued",    "urls": {      "property1": "string",      "property2": "string"    },    "property1": null,    "property2": null  }}