Set the worktree for a user session.
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Request to set a user session's worktree.
Worktree ID to associate with session
Successful Response
Serialized worktree entity returned to API clients.
Unique worktree identifier
Parent workspace identifier
Whether this is the main/default worktree for the workspace
Timestamp when the worktree was created
Timestamp when the worktree was last updated
Worktree name (null for the main worktree)
Filesystem path for the worktree on the machine
Type of worktree: LOCAL (user machine) or REMOTE (sandbox)
LOCAL, REMOTE Machine+path link when worktree_type is LOCAL
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)