Workspaces
Reset a layered workspace to its template (wipes the workspace layer)
Keeps the key, id, template version, caps, secret bindings, volume attachments and history; wipes every change. Running: restarted on a blank layer (processes are gone, epoch + 1, old tool tokens get 409 stale_epoch). Suspended: stays suspended; the next resume boots blank. The previous checkpoint stays restorable for 7 days (result.recovery_checkpoint_id). 202 with the reset operation. Errors: 422 confirm_destructive_required, 409 legacy_disk_layout, not_resettable, operation_in_progress, not_supported_for_mode (file-first). Supports Idempotency-Key.
post/v1/workspaces/{workspace_id}/reset
Request
- Base URL: https://api.shardflux.dev
- URL: https://api.shardflux.dev/v1/workspaces/{workspace_id}/reset
- 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.