Closed
Description
User Story 👥
As a user or agent, I'd like to use the API to extend a workspace lease.
Details
We may expose an extension path that looks something like:
/api/v2/workspaces/{workspace}/ttl/extend
with a body like
{
time: *time.Duration
}
If time
is not supplied, we default to 90 mins
. We should set an upper bound on time
. TBD what that upper bound is, but at least two approaches are:
- A hard-set upper bound (example 24 hours)
- The difference between NOW and the next scheduled start time
Acceptance Criteria
- An API/SDK call that extends a lease