Get Workspace Stay organized with collections Save and categorize content based on your preferences.
Version 4.0.26.2 (latest)
Get A Workspace
Returns information about a workspace such as the git status and selected branchesof all projects available to the caller's user account.
A workspace defines which versions of project files will be used to evaluate expressionsand operations that use model definitions - operations such as running queries or rendering dashboards.Each project has its own git repository, and each project in a workspace may be configured to referenceparticular branch or revision within their respective repositories.
There are two predefined workspaces available: "production" and "dev".
The production workspace is shared across all Looker users. Models in the production workspace are read-only.Changing files in production is accomplished by modifying files in a git branch and using Pull Requeststo merge the changes from the dev branch into the production branch, and then tellingLooker to sync with production.
The dev workspace is local to each Looker user. Changes made to project/model files in the dev workspace only affectthat user, and only when the dev workspace is selected as the active workspace for the API session.(See set_session_workspace()).
The dev workspace is NOT unique to an API session. Two applications accessing the Looker API usingthe same user account will see the same files in the dev workspace. To avoid collisions betweenAPI clients it's best to have each client login with API credentials for a different user account.
Changes made to files in a dev workspace are persistent across API sessions. It's a goodidea to commit any changes you've made to the git repository, but not strictly required. Your modified filesreside in a special user-specific directory on the Looker server and will still be there when you login in againlater and use update_session(workspace_id: "dev") to select the dev workspace for the new API session.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2026-02-09 UTC."],[],[]]