Sandboxes

Update lifecycle config

Update the lifecycle configuration for a sandbox.

PUT
/v1/sandboxes/{id}/lifecycle

Update the lifecycle configuration for a sandbox.

AuthorizationBearer <token>

API key starting with tektona_. Create one at app-dev.tektona.ai under API Keys.

In: header

Path Parameters

id*string

Sandbox ID (ULID)

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

auto_delete_after?string

Duration string (e.g. '30d'). Empty string to disable.

auto_pause_after?string

Duration string (e.g. '15m'). Empty string to disable.

auto_pause_mode?string

Pause mode for auto-pause.

Value in"hibernate" | "suspend"
auto_resume?boolean

Wake on incoming activity.

Response Body

application/json

application/problem+json

curl -X PUT "https://api-dev.tektona.ai/v1/sandboxes/string/lifecycle" \  -H "Content-Type: application/json" \  -d '{}'
{  "$schema": "https://api-dev.tektona.ai/schemas/LifecycleResponse.json",  "auto_delete_after": "string",  "auto_pause_after": "string",  "auto_pause_mode": "string",  "auto_resume": true,  "configured": {    "auto_delete_after": "string",    "auto_pause_after": "string",    "auto_pause_mode": "string",    "auto_resume": true  },  "source": {    "auto_delete_after": "own",    "auto_pause_after": "own",    "auto_pause_mode": "own",    "auto_resume": "own"  }}