All URIs are relative to /api/3.1
Method | HTTP request | Description |
---|---|---|
allColorCollections | GET /color_collections | Get all Color Collections |
colorCollection | GET /color_collections/{collection_id} | Get Color Collection by ID |
colorCollectionsCustom | GET /color_collections/custom | Get all Custom Color Collections |
colorCollectionsStandard | GET /color_collections/standard | Get all Standard Color Collections |
createColorCollection | POST /color_collections | Create ColorCollection |
defaultColorCollection | GET /color_collections/default | Get Default Color Collection |
deleteColorCollection | DELETE /color_collections/{collection_id} | Delete ColorCollection |
setDefaultColorCollection | PUT /color_collections/default | Set Default Color Collection |
updateColorCollection | PATCH /color_collections/{collection_id} | Update Custom Color collection |
[ColorCollection] allColorCollections(opts)
Get all Color Collections
Get an array of all existing Color Collections Get a single color collection by id with ColorCollection Get all standard color collections with ColorCollection Get all custom color collections with ColorCollection Note: Only an API user with the Admin role can call this endpoint. Unauthorized requests will return `Not Found` (404) errors.
var LookerApi31Reference = require('looker-node-api');
var apiInstance = new LookerApi31Reference.ColorCollectionApi();
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.allColorCollections(opts, callback);
Name | Type | Description | Notes |
---|---|---|---|
fields | String | Requested fields. | [optional] |
No authorization required
- Content-Type: application/json
- Accept: application/json
ColorCollection colorCollection(collectionId, opts)
Get Color Collection by ID
Get a Color Collection by ID Use this to retrieve a specific Color Collection. Get a single color collection by id with ColorCollection Get all standard color collections with ColorCollection Get all custom color collections with ColorCollection Note: Only an API user with the Admin role can call this endpoint. Unauthorized requests will return `Not Found` (404) errors.
var LookerApi31Reference = require('looker-node-api');
var apiInstance = new LookerApi31Reference.ColorCollectionApi();
var collectionId = "collectionId_example"; // String | Id of Color Collection
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.colorCollection(collectionId, opts, callback);
Name | Type | Description | Notes |
---|---|---|---|
collectionId | String | Id of Color Collection | |
fields | String | Requested fields. | [optional] |
No authorization required
- Content-Type: application/json
- Accept: application/json
[ColorCollection] colorCollectionsCustom(opts)
Get all Custom Color Collections
Get an array of all existing Custom Color Collections Get a single color collection by id with ColorCollection Get all standard color collections with ColorCollection Note: Only an API user with the Admin role can call this endpoint. Unauthorized requests will return `Not Found` (404) errors.
var LookerApi31Reference = require('looker-node-api');
var apiInstance = new LookerApi31Reference.ColorCollectionApi();
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.colorCollectionsCustom(opts, callback);
Name | Type | Description | Notes |
---|---|---|---|
fields | String | Requested fields. | [optional] |
No authorization required
- Content-Type: application/json
- Accept: application/json
[ColorCollection] colorCollectionsStandard(opts)
Get all Standard Color Collections
Get an array of all existing Standard Color Collections Get a single color collection by id with ColorCollection Get all custom color collections with ColorCollection Note: Only an API user with the Admin role can call this endpoint. Unauthorized requests will return `Not Found` (404) errors.
var LookerApi31Reference = require('looker-node-api');
var apiInstance = new LookerApi31Reference.ColorCollectionApi();
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.colorCollectionsStandard(opts, callback);
Name | Type | Description | Notes |
---|---|---|---|
fields | String | Requested fields. | [optional] |
No authorization required
- Content-Type: application/json
- Accept: application/json
ColorCollection createColorCollection(opts)
Create ColorCollection
Create a custom color collection with the specified information Creates a new custom color collection object, returning the details, including the created id. Update an existing color collection with Update Color Collection Permanently delete an existing custom color collection with Delete Color Collection Note: Only an API user with the Admin role can call this endpoint. Unauthorized requests will return `Not Found` (404) errors.
var LookerApi31Reference = require('looker-node-api');
var apiInstance = new LookerApi31Reference.ColorCollectionApi();
var opts = {
'body': new LookerApi31Reference.ColorCollection() // ColorCollection | ColorCollection
};
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
};
apiInstance.createColorCollection(opts, callback);
Name | Type | Description | Notes |
---|---|---|---|
body | ColorCollection | ColorCollection | [optional] |
No authorization required
- Content-Type: application/json
- Accept: application/json
ColorCollection defaultColorCollection()
Get Default Color Collection
Get the default color collection Use this to retrieve the default Color Collection. Set the default color collection with ColorCollection
var LookerApi31Reference = require('looker-node-api');
var apiInstance = new LookerApi31Reference.ColorCollectionApi();
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
};
apiInstance.defaultColorCollection(callback);
This endpoint does not need any parameter.
No authorization required
- Content-Type: application/json
- Accept: application/json
deleteColorCollection(collectionId)
Delete ColorCollection
Delete a custom color collection by id This operation permanently deletes the identified Custom color collection. Standard color collections cannot be deleted Because multiple color collections can have the same label, they must be deleted by ID, not name. Note: Only an API user with the Admin role can call this endpoint. Unauthorized requests will return `Not Found` (404) errors.
var LookerApi31Reference = require('looker-node-api');
var apiInstance = new LookerApi31Reference.ColorCollectionApi();
var collectionId = "collectionId_example"; // String | Id of Color Collection
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully.');
}
};
apiInstance.deleteColorCollection(collectionId, callback);
Name | Type | Description | Notes |
---|---|---|---|
collectionId | String | Id of Color Collection |
null (empty response body)
No authorization required
- Content-Type: application/json
- Accept: application/json
ColorCollection setDefaultColorCollection(collectionId)
Set Default Color Collection
Set the global default Color Collection by ID Returns the new specified default Color Collection object. Note: Only an API user with the Admin role can call this endpoint. Unauthorized requests will return `Not Found` (404) errors.
var LookerApi31Reference = require('looker-node-api');
var apiInstance = new LookerApi31Reference.ColorCollectionApi();
var collectionId = "collectionId_example"; // String | ID of color collection to set as default
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
};
apiInstance.setDefaultColorCollection(collectionId, callback);
Name | Type | Description | Notes |
---|---|---|---|
collectionId | String | ID of color collection to set as default |
No authorization required
- Content-Type: application/json
- Accept: application/json
ColorCollection updateColorCollection(collectionId, body)
Update Custom Color collection
Update a custom color collection by id. Note: Only an API user with the Admin role can call this endpoint. Unauthorized requests will return `Not Found` (404) errors.
var LookerApi31Reference = require('looker-node-api');
var apiInstance = new LookerApi31Reference.ColorCollectionApi();
var collectionId = "collectionId_example"; // String | Id of Custom Color Collection
var body = new LookerApi31Reference.ColorCollection(); // ColorCollection | ColorCollection
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
};
apiInstance.updateColorCollection(collectionId, body, callback);
Name | Type | Description | Notes |
---|---|---|---|
collectionId | String | Id of Custom Color Collection | |
body | ColorCollection | ColorCollection |
No authorization required
- Content-Type: application/json
- Accept: application/json