Workspaces
Set or clear the workspace idle policy (automatic suspend)
idle_policy: adaptive (the learned timeout), never, or fixed:<seconds> (60..604800); null clears it so the template default (else adaptive) applies. Work signals always win: a running command, an attached session or a keepalive keeps the workspace running. Applies from the idle loop’s next evaluation. 409 session_lifetime for session workspaces (they end after their idle timeout), 409 not_supported_for_mode for file-first workspaces (never suspended), 409 workspace_deleted. Returns the workspace.
put/v1/workspaces/{workspace_id}/idle-policy
Request
- Base URL: https://api.shardflux.dev
- URL: https://api.shardflux.dev/v1/workspaces/{workspace_id}/idle-policy
- Auth: HTTP bearer
Path parameters
workspace_idstring uuid required
UUIDv7, lowercase canonical form.
Request body
Response
Default Response
Changes
No recorded changes to this operation across all 1 revision of this API.