Extend a sandbox
Sets how long the sandbox lives from now: ttlMinutes, at most 1440 (24 hours).
apiKeyAuthorizationBearer <hmk_…>An API key from the dashboard or homemade api-key create.
sandboxId*stringapplication/json- body
ttlMinutes*integerMinutes from now until the sandbox is deleted. At most 1440.
1 <= value <= 1440The sandbox with its new deletion time.
application/json- response
sandbox*A throwaway VM. It never sleeps and is deleted when its time runs out.
curl -X PATCH 'https://api.homemade.dev/api/sandboxes/string' \ -H 'Content-Type: application/json' \ -d '{ "ttlMinutes": 1}'{ "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 }}Run a command in a sandbox POST
Runs one command in the sandbox with `/bin/sh -lc` and answers its exit code and output. A sandbox that is still starting is waited for (up to a minute). The sandbox's own `env` is set, under the command's. Use `?stream=1` for commands that run longer than about 90 seconds.
Get a sandbox's activity GET
What happened to the sandbox, oldest first: created, ready, every command and file write through the API, each extend. Commands are shortened, with the values of their env masked.