Accessing Explores and Models on a Branch through the API

I’m trying to access models and explores only available on a dev branch through the api, but only getting the models from production.

sdk.update_session({“workspace_id”: “dev”})
sdk.git_branch() to verify I am indeed on dev and the correct branch

sdk.all_lookml_models()

Thanks in advance!

1 Like

UPDATE: Turns out models aren’t recognized by the api until they’re on production. You still can get the dev version of a model, but the model must exist on production.