All URIs are relative to /api/3.1
| Method | HTTP request | Description |
|---|---|---|
| addGroupGroup | POST /groups/{group_id}/groups | Add a Group to Group |
| addGroupUser | POST /groups/{group_id}/users | Add a User to Group |
| allGroupGroups | GET /groups/{group_id}/groups | Get All Groups in Group |
| allGroupUsers | GET /groups/{group_id}/users | Get All Users in Group |
| allGroups | GET /groups | Get All Groups |
| createGroup | POST /groups | Create Group |
| deleteGroup | DELETE /groups/{group_id} | Delete Group |
| deleteGroupFromGroup | DELETE /groups/{group_id}/groups/{deleting_group_id} | Deletes a Group from Group |
| deleteGroupUser | DELETE /groups/{group_id}/users/{user_id} | Remove a User from Group |
| deleteUserAttributeGroupValue | DELETE /groups/{group_id}/attribute_values/{user_attribute_id} | Delete User Attribute Group Value |
| group | GET /groups/{group_id} | Get Group |
| updateGroup | PATCH /groups/{group_id} | Update Group |
| updateUserAttributeGroupValue | PATCH /groups/{group_id}/attribute_values/{user_attribute_id} | Set User Attribute Group Value |
Group addGroupGroup(groupId, opts)
Add a Group to Group
var LookerApi31Reference = require('looker-node-api');
var apiInstance = new LookerApi31Reference.GroupApi();
var groupId = 789; // Number | Id of group
var opts = {
'body': new LookerApi31Reference.GroupIdForGroupInclusion() // GroupIdForGroupInclusion | Group id to add
};
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
};
apiInstance.addGroupGroup(groupId, opts, callback);| Name | Type | Description | Notes |
|---|---|---|---|
| groupId | Number | Id of group | |
| body | GroupIdForGroupInclusion | Group id to add | [optional] |
No authorization required
- Content-Type: application/json
- Accept: application/json
User addGroupUser(groupId, opts)
Add a User to Group
var LookerApi31Reference = require('looker-node-api');
var apiInstance = new LookerApi31Reference.GroupApi();
var groupId = 789; // Number | Id of group
var opts = {
'body': new LookerApi31Reference.GroupIdForGroupUserInclusion() // GroupIdForGroupUserInclusion | User id to add
};
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
};
apiInstance.addGroupUser(groupId, opts, callback);| Name | Type | Description | Notes |
|---|---|---|---|
| groupId | Number | Id of group | |
| body | GroupIdForGroupUserInclusion | User id to add | [optional] |
No authorization required
- Content-Type: application/json
- Accept: application/json
[Group] allGroupGroups(groupId, opts)
Get All Groups in Group
var LookerApi31Reference = require('looker-node-api');
var apiInstance = new LookerApi31Reference.GroupApi();
var groupId = 789; // Number | Id of group
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.allGroupGroups(groupId, opts, callback);| Name | Type | Description | Notes |
|---|---|---|---|
| groupId | Number | Id of group | |
| fields | String | Requested fields. | [optional] |
No authorization required
- Content-Type: application/json
- Accept: application/json
[User] allGroupUsers(groupId, opts)
Get All Users in Group
var LookerApi31Reference = require('looker-node-api');
var apiInstance = new LookerApi31Reference.GroupApi();
var groupId = 789; // Number | Id of group
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.allGroupUsers(groupId, opts, callback);| Name | Type | Description | Notes |
|---|---|---|---|
| groupId | Number | Id of group | |
| 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
[Group] allGroups(opts)
Get All Groups
var LookerApi31Reference = require('looker-node-api');
var apiInstance = new LookerApi31Reference.GroupApi();
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.
'ids': [3.4], // [Number] | Optional of ids to get specific groups.
'contentMetadataId': 789, // Number | Id of content metadata to which groups must have access.
'canAddToContentMetadata': true // Boolean | Select only groups that either can/cannot be given access to content.
};
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
};
apiInstance.allGroups(opts, callback);| Name | Type | Description | Notes |
|---|---|---|---|
| fields | String | Requested fields. | [optional] |
| page | Number | Requested page. | [optional] |
| perPage | Number | Results per page. | [optional] |
| sorts | String | Fields to sort by. | [optional] |
| ids | [Number] | Optional of ids to get specific groups. | [optional] |
| contentMetadataId | Number | Id of content metadata to which groups must have access. | [optional] |
| canAddToContentMetadata | Boolean | Select only groups that either can/cannot be given access to content. | [optional] |
No authorization required
- Content-Type: application/json
- Accept: application/json
Group createGroup(opts)
Create Group
var LookerApi31Reference = require('looker-node-api');
var apiInstance = new LookerApi31Reference.GroupApi();
var opts = {
'body': new LookerApi31Reference.Group(), // Group | Group
'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.createGroup(opts, callback);| Name | Type | Description | Notes |
|---|---|---|---|
| body | Group | Group | [optional] |
| fields | String | Requested fields. | [optional] |
No authorization required
- Content-Type: application/json
- Accept: application/json
'String' deleteGroup(groupId)
Delete Group
var LookerApi31Reference = require('looker-node-api');
var apiInstance = new LookerApi31Reference.GroupApi();
var groupId = 789; // Number | Id of group
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
};
apiInstance.deleteGroup(groupId, callback);| Name | Type | Description | Notes |
|---|---|---|---|
| groupId | Number | Id of group |
'String'
No authorization required
- Content-Type: application/json
- Accept: application/json
deleteGroupFromGroup(groupId, deletingGroupId)
Deletes a Group from Group
var LookerApi31Reference = require('looker-node-api');
var apiInstance = new LookerApi31Reference.GroupApi();
var groupId = 789; // Number | Id of group
var deletingGroupId = 789; // Number | Id of group to delete
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully.');
}
};
apiInstance.deleteGroupFromGroup(groupId, deletingGroupId, callback);| Name | Type | Description | Notes |
|---|---|---|---|
| groupId | Number | Id of group | |
| deletingGroupId | Number | Id of group to delete |
null (empty response body)
No authorization required
- Content-Type: application/json
- Accept: application/json
deleteGroupUser(groupId, userId)
Remove a User from Group
var LookerApi31Reference = require('looker-node-api');
var apiInstance = new LookerApi31Reference.GroupApi();
var groupId = 789; // Number | Id of group
var userId = 789; // Number | Id of user to remove from group
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully.');
}
};
apiInstance.deleteGroupUser(groupId, userId, callback);| Name | Type | Description | Notes |
|---|---|---|---|
| groupId | Number | Id of group | |
| userId | Number | Id of user to remove from group |
null (empty response body)
No authorization required
- Content-Type: application/json
- Accept: application/json
deleteUserAttributeGroupValue(groupId, userAttributeId)
Delete User Attribute Group Value
var LookerApi31Reference = require('looker-node-api');
var apiInstance = new LookerApi31Reference.GroupApi();
var groupId = 789; // Number | Id of group
var userAttributeId = 789; // Number | Id of user attribute
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully.');
}
};
apiInstance.deleteUserAttributeGroupValue(groupId, userAttributeId, callback);| Name | Type | Description | Notes |
|---|---|---|---|
| groupId | Number | Id of group | |
| userAttributeId | Number | Id of user attribute |
null (empty response body)
No authorization required
- Content-Type: application/json
- Accept: application/json
Group group(groupId, opts)
Get Group
var LookerApi31Reference = require('looker-node-api');
var apiInstance = new LookerApi31Reference.GroupApi();
var groupId = 789; // Number | Id of group
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.group(groupId, opts, callback);| Name | Type | Description | Notes |
|---|---|---|---|
| groupId | Number | Id of group | |
| fields | String | Requested fields. | [optional] |
No authorization required
- Content-Type: application/json
- Accept: application/json
Group updateGroup(groupId, body, opts)
Update Group
var LookerApi31Reference = require('looker-node-api');
var apiInstance = new LookerApi31Reference.GroupApi();
var groupId = 789; // Number | Id of group
var body = new LookerApi31Reference.Group(); // Group | Group
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.updateGroup(groupId, body, opts, callback);| Name | Type | Description | Notes |
|---|---|---|---|
| groupId | Number | Id of group | |
| body | Group | Group | |
| fields | String | Requested fields. | [optional] |
No authorization required
- Content-Type: application/json
- Accept: application/json
UserAttributeGroupValue updateUserAttributeGroupValue(groupId, userAttributeId, body)
Set User Attribute Group Value
Set the value of a user attribute for a group. For information about how user attribute values are calculated, see Set User Attribute Group Values.
var LookerApi31Reference = require('looker-node-api');
var apiInstance = new LookerApi31Reference.GroupApi();
var groupId = 789; // Number | Id of group
var userAttributeId = 789; // Number | Id of user attribute
var body = new LookerApi31Reference.UserAttributeGroupValue(); // UserAttributeGroupValue | New value for group.
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
};
apiInstance.updateUserAttributeGroupValue(groupId, userAttributeId, body, callback);| Name | Type | Description | Notes |
|---|---|---|---|
| groupId | Number | Id of group | |
| userAttributeId | Number | Id of user attribute | |
| body | UserAttributeGroupValue | New value for group. |
No authorization required
- Content-Type: application/json
- Accept: application/json