Set User Session Worktree
Set the worktree for a user session.
Path parameters
Request body
Worktree ID to associate with session
Response
Successful Response
Unique worktree identifier
Parent workspace identifier
Worktree name (null for the main worktree)
Whether this is the main/default worktree for the workspace
Filesystem path for the worktree on the machine
Type of worktree: LOCAL (user machine) or REMOTE (sandbox)
Managed machine ID if worktree_type is REMOTE
Most recent liveness heartbeat received from the sandbox container (REMOTE only).
ID of the last checkpoint that was successfully synced to cloud storage. This may differ from current_checkpoint_id if a recent checkpoint failed to sync.
Whether a checkpoint needs to be restored on next local session start
Identifier of the current checkpoint for this worktree
Metadata associated with the current checkpoint (e.g., commit info)
Timestamp when the worktree was created
Timestamp when the worktree was last updated