Create or update a workspace and link it to a machine.
This endpoint:
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Payload for creating or updating a workspace from the daemon.
Identifier of the daemon machine
Absolute path reported by the daemon
Canonical git host if detected (e.g., github.com)
Canonical git path if detected (e.g., org/repo)
Optional workspace metadata (labels, annotations, etc.)
Detected git settings (remote, base_ref) for the workspace
Successful Response
Serialized workspace row returned to API clients.
Unique workspace identifier
Owner user identifier
Timestamp when the workspace was created
Timestamp when the workspace was last updated
Canonical git host (e.g., github.com)
Canonical git repository path (e.g., org/repo)
Arbitrary workspace metadata (labels, annotations)
Workspace configuration including git, sync, and remote environment settings
Machines linked to this workspace with their local paths