All URIs are relative to /api/3.1
Method | HTTP request | Description |
---|---|---|
allFolders | GET /folders | Get All Folders |
createFolder | POST /folders | Create Folder |
deleteFolder | DELETE /folders/{folder_id} | Delete Folder |
folder | GET /folders/{folder_id} | Get Folder |
folderAncestors | GET /folders/{folder_id}/ancestors | Get Folder Ancestors |
folderChildren | GET /folders/{folder_id}/children | Get Folder Children |
folderChildrenSearch | GET /folders/{folder_id}/children/search | Search Folder Children |
folderDashboards | GET /folders/{folder_id}/dashboards | Get Folder Dashboards |
folderLooks | GET /folders/{folder_id}/looks | Get Folder Looks |
folderParent | GET /folders/{folder_id}/parent | Get Folder Parent |
searchFolders | GET /folders/search | Search Folders |
updateFolder | PATCH /folders/{folder_id} | Update Folder |
[Folder] allFolders(opts)
Get All Folders
var LookerApi31Reference = require('looker-node-api');
var apiInstance = new LookerApi31Reference.FolderApi();
var opts = {
'fields': "fields_example" // String | Requested fields.
};
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
};
apiInstance.allFolders(opts, callback);
Name | Type | Description | Notes |
---|---|---|---|
fields | String | Requested fields. | [optional] |
No authorization required
- Content-Type: application/json
- Accept: application/json
Folder createFolder(opts)
Create Folder
Create a folder with specified information. Caller must have permission to edit the parent folder and to create folders, otherwise the request returns 404 Not Found.
var LookerApi31Reference = require('looker-node-api');
var apiInstance = new LookerApi31Reference.FolderApi();
var opts = {
'body': new LookerApi31Reference.Folder() // Folder | Folder
};
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
};
apiInstance.createFolder(opts, callback);
Name | Type | Description | Notes |
---|---|---|---|
body | Folder | Folder | [optional] |
No authorization required
- Content-Type: application/json
- Accept: application/json
'String' deleteFolder(folderId)
Delete Folder
Delete the folder with a specific id including any children folders. DANGER this will delete all looks and dashboards in the folder.
var LookerApi31Reference = require('looker-node-api');
var apiInstance = new LookerApi31Reference.FolderApi();
var folderId = "folderId_example"; // String | Id of folder
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
};
apiInstance.deleteFolder(folderId, callback);
Name | Type | Description | Notes |
---|---|---|---|
folderId | String | Id of folder |
'String'
No authorization required
- Content-Type: application/json
- Accept: application/json
Folder folder(folderId, opts)
Get Folder
var LookerApi31Reference = require('looker-node-api');
var apiInstance = new LookerApi31Reference.FolderApi();
var folderId = "folderId_example"; // String | Id of folder
var opts = {
'fields': "fields_example" // String | Requested fields.
};
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
};
apiInstance.folder(folderId, opts, callback);
Name | Type | Description | Notes |
---|---|---|---|
folderId | String | Id of folder | |
fields | String | Requested fields. | [optional] |
No authorization required
- Content-Type: application/json
- Accept: application/json
[Folder] folderAncestors(folderId, opts)
Get Folder Ancestors
var LookerApi31Reference = require('looker-node-api');
var apiInstance = new LookerApi31Reference.FolderApi();
var folderId = "folderId_example"; // String | Id of folder
var opts = {
'fields': "fields_example" // String | Requested fields.
};
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
};
apiInstance.folderAncestors(folderId, opts, callback);
Name | Type | Description | Notes |
---|---|---|---|
folderId | String | Id of folder | |
fields | String | Requested fields. | [optional] |
No authorization required
- Content-Type: application/json
- Accept: application/json
[Space] folderChildren(folderId, opts)
Get Folder Children
var LookerApi31Reference = require('looker-node-api');
var apiInstance = new LookerApi31Reference.FolderApi();
var folderId = "folderId_example"; // String | Id of folder
var opts = {
'fields': "fields_example", // String | Requested fields.
'page': 789, // Number | Requested page.
'perPage': 789, // Number | Results per page.
'sorts': "sorts_example" // String | Fields to sort by.
};
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
};
apiInstance.folderChildren(folderId, opts, callback);
Name | Type | Description | Notes |
---|---|---|---|
folderId | String | Id of folder | |
fields | String | Requested fields. | [optional] |
page | Number | Requested page. | [optional] |
perPage | Number | Results per page. | [optional] |
sorts | String | Fields to sort by. | [optional] |
No authorization required
- Content-Type: application/json
- Accept: application/json
[Folder] folderChildrenSearch(folderId, opts)
Search Folder Children
var LookerApi31Reference = require('looker-node-api');
var apiInstance = new LookerApi31Reference.FolderApi();
var folderId = "folderId_example"; // String | Id of folder
var opts = {
'fields': "fields_example", // String | Requested fields.
'sorts': "sorts_example", // String | Fields to sort by.
'name': "name_example" // String | Match folder name.
};
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
};
apiInstance.folderChildrenSearch(folderId, opts, callback);
Name | Type | Description | Notes |
---|---|---|---|
folderId | String | Id of folder | |
fields | String | Requested fields. | [optional] |
sorts | String | Fields to sort by. | [optional] |
name | String | Match folder name. | [optional] |
No authorization required
- Content-Type: application/json
- Accept: application/json
[Dashboard] folderDashboards(folderId, opts)
Get Folder Dashboards
var LookerApi31Reference = require('looker-node-api');
var apiInstance = new LookerApi31Reference.FolderApi();
var folderId = "folderId_example"; // String | Id of folder
var opts = {
'fields': "fields_example" // String | Requested fields.
};
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
};
apiInstance.folderDashboards(folderId, opts, callback);
Name | Type | Description | Notes |
---|---|---|---|
folderId | String | Id of folder | |
fields | String | Requested fields. | [optional] |
No authorization required
- Content-Type: application/json
- Accept: application/json
[LookWithQuery] folderLooks(folderId, opts)
Get Folder Looks
var LookerApi31Reference = require('looker-node-api');
var apiInstance = new LookerApi31Reference.FolderApi();
var folderId = "folderId_example"; // String | Id of folder
var opts = {
'fields': "fields_example" // String | Requested fields.
};
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
};
apiInstance.folderLooks(folderId, opts, callback);
Name | Type | Description | Notes |
---|---|---|---|
folderId | String | Id of folder | |
fields | String | Requested fields. | [optional] |
No authorization required
- Content-Type: application/json
- Accept: application/json
Folder folderParent(folderId, opts)
Get Folder Parent
var LookerApi31Reference = require('looker-node-api');
var apiInstance = new LookerApi31Reference.FolderApi();
var folderId = "folderId_example"; // String | Id of folder
var opts = {
'fields': "fields_example" // String | Requested fields.
};
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
};
apiInstance.folderParent(folderId, opts, callback);
Name | Type | Description | Notes |
---|---|---|---|
folderId | String | Id of folder | |
fields | String | Requested fields. | [optional] |
No authorization required
- Content-Type: application/json
- Accept: application/json
[Folder] searchFolders(opts)
Search Folders
Search for folders by creator id, parent id, name, etc
var LookerApi31Reference = require('looker-node-api');
var apiInstance = new LookerApi31Reference.FolderApi();
var opts = {
'fields': "fields_example", // String | Requested fields.
'page': 789, // Number | Requested page.
'perPage': 789, // Number | Results per page.
'limit': 789, // Number | Number of results to return. (used with offset and takes priority over page and per_page)
'offset': 789, // Number | Number of results to skip before returning any. (used with limit and takes priority over page and per_page)
'sorts': "sorts_example", // String | Fields to sort by.
'name': "name_example", // String | Match Space title.
'id': 789, // Number | Match Space id
'parentId': "parentId_example", // String | Filter on a children of a particular folder.
'creatorId': "creatorId_example", // String | Filter on folder created by a particular user.
'filterOr': true // Boolean | Combine given search criteria in a boolean OR expression
};
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
};
apiInstance.searchFolders(opts, callback);
Name | Type | Description | Notes |
---|---|---|---|
fields | String | Requested fields. | [optional] |
page | Number | Requested page. | [optional] |
perPage | Number | Results per page. | [optional] |
limit | Number | Number of results to return. (used with offset and takes priority over page and per_page) | [optional] |
offset | Number | Number of results to skip before returning any. (used with limit and takes priority over page and per_page) | [optional] |
sorts | String | Fields to sort by. | [optional] |
name | String | Match Space title. | [optional] |
id | Number | Match Space id | [optional] |
parentId | String | Filter on a children of a particular folder. | [optional] |
creatorId | String | Filter on folder created by a particular user. | [optional] |
filterOr | Boolean | Combine given search criteria in a boolean OR expression | [optional] |
No authorization required
- Content-Type: application/json
- Accept: application/json
Folder updateFolder(folderId, body)
Update Folder
var LookerApi31Reference = require('looker-node-api');
var apiInstance = new LookerApi31Reference.FolderApi();
var folderId = "folderId_example"; // String | Id of folder
var body = new LookerApi31Reference.Folder(); // Folder | Folder
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
};
apiInstance.updateFolder(folderId, body, callback);
Name | Type | Description | Notes |
---|---|---|---|
folderId | String | Id of folder | |
body | Folder | Folder |
No authorization required
- Content-Type: application/json
- Accept: application/json