Sets when the sandbox ends: ttl from now, or never with "none".
API key access: sandboxes.
apiKeyAuthorizationBearer <pyo_…>An API key from the dashboard's API keys page: Authorization: Bearer pyo_…. Keys can expire, and an expired one gets a 401.
id*stringThe sandbox's id.
application/jsonttl*stringThe sandbox now ends this long from now, like "30m", "1h" or "7d", or seconds. "none": it runs until it's deleted. Within the team's longest lifetime.
The sandbox, with its new expiresAt (null when it runs until it's deleted).
application/jsoncurl -X POST 'https://your-pyo.example.com/api/v1/sandboxes/string/extend' \
-H 'Content-Type: application/json' \
-d '{
"ttl": "string"
}'{}