workspaces

Update Workspace Config

Update workspace configuration (git, sync, remote_env, and setup settings).

patch/api/v1/workspaces/{workspace_id}/config

Request

  • Base URL
    https://docs.omnara.com (the document declares no server; this is the origin it was published from)
  • Auth
    HTTP bearer

Path parameters

workspace_id, string required

Request body

WorkspaceConfigUpdateRequest required

Request body for updating workspace configuration.

git, GitSettings nullable

Git-related settings for a workspace.

sync, SyncSettings nullable

Remote sync settings for a workspace.

When enabled, checkpoints are automatically uploaded after each agent turn.

remote_env, RemoteEnvSettings nullable

Remote environment settings for a workspace.

Used to configure remote environments that can be spun up with specific ENV variables.

setup, SetupSettings nullable

Setup script settings for a workspace.

Configures an optional shell script that runs automatically:

  • On worktree creation (local machine)
  • On worktree migration (to/from sandbox)
  • On checkpoint restore

The script runs with the worktree directory as the working directory.

Response

Successful Response

WorkspaceDescriptor required

Serialized workspace row returned to API clients.

id, string required

Unique workspace identifier

user_id, string required

Owner user identifier

git_host, string nullable

Canonical git host (e.g., github.com)

git_path, string nullable

Canonical git repository path (e.g., org/repo)

workspace_metadata, object nullable

Arbitrary workspace metadata (labels, annotations)

workspace_config, WorkspaceConfigOutput

Workspace configuration including git, sync, and remote environment settings

user_machine_paths, SharedSchemasApiWorkspacesUserMachinePathDescriptor[]

Machines linked to this workspace with their local paths

created_at, string date-time required

Timestamp when the workspace was created

updated_at, string date-time required

Timestamp when the workspace was last updated

Changes

No recorded changes to this operation across all 1 revision of this API.