Attach a shared volume to a workspace at mount_path (ro or rw)
202 with the attachment (state attaching) and its volume_attach operation; the cell mounts it in the running guest (or records it for the next start when the workspace has no VM) and reports attached. The volume must be available, of the same organization and of the workspace’s project unless org-shared (409 volume_not_shared). One attachment per (volume, workspace); mount paths may not nest (409 mount_path_conflict); at most 8 per workspace (403 quota_exceeded). Attach/detach share the workspace’s single active lifecycle operation: 409 operation_in_progress while another one runs. Re-attaching an attached volume with the same mount_path/mode returns 200 without a new operation. Supports Idempotency-Key.
Request
- Base URL: https://api.shardflux.dev
- URL: https://api.shardflux.dev/v1/workspaces/{workspace_id}/volumes
- Auth: HTTP bearer
Path parameters
UUIDv7, lowercase canonical form.
Request body
Response
operation is null only for an idempotent re-attach of an already attached volume (200).
Changes
No recorded changes to this operation across all 1 revision of this API.