Question

Looker API for views

  • 28 March 2020
  • 7 replies
  • 758 views

Is it possible to create a new view file and then update an explore through looker API? I tried using APIv3.1 and could not find any lead.


7 replies

Userlevel 7
Badge +1

Check out my answer here:



Short version: The Looker API doesn’t have file management endpoints, you should use your git provider to change or create files.

Hi, Is this still a valid answer (after 1 year) that using Looker APIs we will not be able to update the views dynamically?

Userlevel 4

It is @addankirao . Looker does not support editing LookML via the API, we rely on Git for all LookML file management.

Hi @jamesnestler @izzy is there any tutorial about this process of creating and updating view files using Git? 

Userlevel 4
Badge

@leilaapsilva generally, we would recommend pylookml rather than programmatically updating the code in github. Have you seen this documentation by chance?

Userlevel 4

(we should note that pylookml is not an official thing, but it’s something folks commonly use)

@leilaapsilva generally, we would recommend pylookml rather than programmatically updating the code in github. Have you seen this documentation by chance?

Yes, I am trying to use Pylookml now, but I don’t understand how to add new dimensions to a view, the documentation is a bit confusing… 

Reply