- Notifications
You must be signed in to change notification settings - Fork928
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}
Iftime
is not supplied, we default to90 mins
. We should set an upper bound ontime
. 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