Skip to content

API/SDK auto-stop extension #1462

Closed
@greyscaled

Description

@greyscaled

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:

  1. A hard-set upper bound (example 24 hours)
  2. The difference between NOW and the next scheduled start time

Acceptance Criteria

  • An API/SDK call that extends a lease

Metadata

Metadata

Labels

apiArea: HTTP API

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions