You can also view Looker’s interactive API documentation on the Looker Developer Portal or by using the API Explorer extension.
Get All LookML Models
Implementation Notes
Get information about all lookml models.
Response Class
array
Parameters
Parameter | Required? | Description | Parameter Type | Data Type |
---|---|---|---|---|
fields | false | Requested fields. | string | string |
limit | false | Number of results to return. (can be used with offset) | integer | int64 |
offset | false | Number of results to skip before returning any. (Defaults to 0 if not set when limit is used) | integer | int64 |
Response Messages
HTTP Status Code | Reason | Response Model |
---|---|---|
400 | Bad Request |
Error {
message (string, read-only, required): Error details, documentation_url (string, read-only, required): Documentation link }
|
404 | Not Found |
Error {
message (string, read-only, required): Error details, documentation_url (string, read-only, required): Documentation link }
|
Create LookML Model
Implementation Notes
Create a lookml model using the specified configuration.
Response Class
LookmlModelNavExplore {
Parameters
Parameter | Required? | Description | Parameter Type | Data Type |
---|---|---|---|---|
body | true | LookML Model | body |
LookmlModel {
can (object, read-only): Operations the current user is able to perform on this object, allowed_db_connection_names (Array[string]): Array of names of connections this model is allowed to use, explores (Array[LookmlModelNavExplore], read-only): Array of explores (if has_content), has_content (boolean, read-only): Does this model declaration have have lookml content?, label (string, read-only): UI-friendly name for this model, name (string): Name of the model. Also used as the unique identifier, project_name (string): Name of project containing the model, unlimited_db_connections (boolean): Is this model allowed to use all current and future connections }LookmlModelNavExplore { name (string, read-only): Name of the explore, description (string, read-only): Description for the explore, label (string, read-only): Label for the explore, hidden (boolean, read-only): Is this explore marked as hidden, group_label (string, read-only): Label used to group explores in the navigation menus }
|
Response Messages
HTTP Status Code | Reason | Response Model |
---|---|---|
400 | Bad Request |
Error {
message (string, read-only, required): Error details, documentation_url (string, read-only, required): Documentation link }
|
404 | Not Found |
Error {
message (string, read-only, required): Error details, documentation_url (string, read-only, required): Documentation link }
|
409 | Resource Already Exists |
Error {
message (string, read-only, required): Error details, documentation_url (string, read-only, required): Documentation link }
|
422 | Validation Error |
ValidationError {
message (string, read-only, required): Error details, errors (Array[ValidationErrorDetail], read-only): Error detail array, documentation_url (string, read-only, required): Documentation link }ValidationErrorDetail { field (string, read-only): Field with error, code (string, read-only): Error code, message (string, read-only): Error info message, documentation_url (string, read-only, required): Documentation link }
|
429 | Too Many Requests |
Error {
message (string, read-only, required): Error details, documentation_url (string, read-only, required): Documentation link }
|
Get LookML Model
Implementation Notes
Get information about a lookml model.
Response Class
LookmlModelNavExplore {
Parameters
Parameter | Required? | Description | Parameter Type | Data Type |
---|---|---|---|---|
lookml_model_name | true | Name of lookml model. | string | string |
fields | false | Requested fields. | string | string |
Response Messages
HTTP Status Code | Reason | Response Model |
---|---|---|
400 | Bad Request |
Error {
message (string, read-only, required): Error details, documentation_url (string, read-only, required): Documentation link }
|
404 | Not Found |
Error {
message (string, read-only, required): Error details, documentation_url (string, read-only, required): Documentation link }
|
Update LookML Model
Implementation Notes
Update a lookml model using the specified configuration.
Response Class
LookmlModelNavExplore {
Parameters
Parameter | Required? | Description | Parameter Type | Data Type |
---|---|---|---|---|
lookml_model_name | true | Name of lookml model. | string | string |
body | true | LookML Model | body |
LookmlModel {
can (object, read-only): Operations the current user is able to perform on this object, allowed_db_connection_names (Array[string]): Array of names of connections this model is allowed to use, explores (Array[LookmlModelNavExplore], read-only): Array of explores (if has_content), has_content (boolean, read-only): Does this model declaration have have lookml content?, label (string, read-only): UI-friendly name for this model, name (string): Name of the model. Also used as the unique identifier, project_name (string): Name of project containing the model, unlimited_db_connections (boolean): Is this model allowed to use all current and future connections }LookmlModelNavExplore { name (string, read-only): Name of the explore, description (string, read-only): Description for the explore, label (string, read-only): Label for the explore, hidden (boolean, read-only): Is this explore marked as hidden, group_label (string, read-only): Label used to group explores in the navigation menus }
|
Response Messages
HTTP Status Code | Reason | Response Model |
---|---|---|
400 | Bad Request |
Error {
message (string, read-only, required): Error details, documentation_url (string, read-only, required): Documentation link }
|
404 | Not Found |
Error {
message (string, read-only, required): Error details, documentation_url (string, read-only, required): Documentation link }
|
422 | Validation Error |
ValidationError {
message (string, read-only, required): Error details, errors (Array[ValidationErrorDetail], read-only): Error detail array, documentation_url (string, read-only, required): Documentation link }ValidationErrorDetail { field (string, read-only): Field with error, code (string, read-only): Error code, message (string, read-only): Error info message, documentation_url (string, read-only, required): Documentation link }
|
429 | Too Many Requests |
Error {
message (string, read-only, required): Error details, documentation_url (string, read-only, required): Documentation link }
|
Delete LookML Model
Implementation Notes
Delete a lookml model.
Response Class
None
Parameters
Parameter | Required? | Description | Parameter Type | Data Type |
---|---|---|---|---|
lookml_model_name | true | Name of lookml model. | string | string |
Response Messages
HTTP Status Code | Reason | Response Model |
---|---|---|
400 | Bad Request |
Error {
message (string, read-only, required): Error details, documentation_url (string, read-only, required): Documentation link }
|
404 | Not Found |
Error {
message (string, read-only, required): Error details, documentation_url (string, read-only, required): Documentation link }
|
429 | Too Many Requests |
Error {
message (string, read-only, required): Error details, documentation_url (string, read-only, required): Documentation link }
|
204 | Successfully deleted. | string |
Get LookML Model Explore
Implementation Notes
Get information about a lookml model explore.
Response Class
LookmlModelExploreAccessFilter {
LookmlModelExploreAlias {
LookmlModelExploreAlwaysFilter {
LookmlModelExploreConditionallyFilter {
LookmlModelExploreSet {
LookmlModelExploreError {
LookmlModelExploreFieldset {
LookmlModelExploreField {
LookmlModelExploreFieldEnumeration {
LookmlModelExploreFieldTimeInterval {
LookmlModelExploreFieldMapLayer {
LookmlModelExploreFieldSqlCase {
LookmlModelExploreFieldMeasureFilters {
LookmlModelExploreJoins {
LookmlModelExploreSupportedMeasureType {
Parameters
Parameter | Required? | Description | Parameter Type | Data Type |
---|---|---|---|---|
lookml_model_name | true | Name of lookml model. | string | string |
explore_name | true | Name of explore. | string | string |
fields | false | Requested fields. | string | string |
Response Messages
HTTP Status Code | Reason | Response Model |
---|---|---|
400 | Bad Request |
Error {
message (string, read-only, required): Error details, documentation_url (string, read-only, required): Documentation link }
|
404 | Not Found |
Error {
message (string, read-only, required): Error details, documentation_url (string, read-only, required): Documentation link }
|