Details on the various actions that can be performed on the
Data Table resource, including the expected
parameters and the potential responses.
Adds a new column to this data table
var params = {
applicationId: myApplicationId,
dataTableId: myDataTableId,
dataTableColumn: myDataTableColumn
};
// with callbacks
client.dataTable.addColumn(params, function (err, result) {
if (err) { return console.error(err); }
console.log(result);
});
// with promises
client.dataTable.addColumn(params)
.then(console.log)
.catch(console.error);
The client must be configured with a valid api access token to call this
action. The token must include at least one of the following scopes:
all.Application, all.Organization, all.User, dataTable.*, or dataTable.addColumn.
Name |
Type |
Required |
Description |
Default |
Example |
applicationId |
string |
Y |
ID associated with the application |
|
575ec8687ae143cd83dc4a97 |
dataTableId |
string |
Y |
ID associated with the data table |
|
575ed78e7ae143cd83dc4aab |
dataTableColumn |
Data Table Column |
Y |
Object containing the new column properties |
|
Data Table Column Example |
losantdomain |
string |
N |
Domain scope of request (rarely needed) |
|
example.com |
Code |
Type |
Description |
200 |
Data Table |
Updated data table information |
Code |
Type |
Description |
400 |
Error |
Error if malformed request |
404 |
Error |
Error if data table was not found |
Deletes a data table
var params = {
applicationId: myApplicationId,
dataTableId: myDataTableId
};
// with callbacks
client.dataTable.delete(params, function (err, result) {
if (err) { return console.error(err); }
console.log(result);
});
// with promises
client.dataTable.delete(params)
.then(console.log)
.catch(console.error);
The client must be configured with a valid api access token to call this
action. The token must include at least one of the following scopes:
all.Application, all.Organization, all.User, dataTable.*, or dataTable.delete.
Name |
Type |
Required |
Description |
Default |
Example |
applicationId |
string |
Y |
ID associated with the application |
|
575ec8687ae143cd83dc4a97 |
dataTableId |
string |
Y |
ID associated with the data table |
|
575ed78e7ae143cd83dc4aab |
losantdomain |
string |
N |
Domain scope of request (rarely needed) |
|
example.com |
Code |
Type |
Description |
200 |
Success |
If data table was successfully deleted |
Code |
Type |
Description |
400 |
Error |
Error if malformed request |
404 |
Error |
Error if data table was not found |
Retrieves information on a data table
var params = {
applicationId: myApplicationId,
dataTableId: myDataTableId
};
// with callbacks
client.dataTable.get(params, function (err, result) {
if (err) { return console.error(err); }
console.log(result);
});
// with promises
client.dataTable.get(params)
.then(console.log)
.catch(console.error);
The client must be configured with a valid api access token to call this
action. The token must include at least one of the following scopes:
all.Application, all.Application.cli, all.Application.read, all.Organization, all.Organization.read, all.User, all.User.cli, all.User.read, dataTable.*, or dataTable.get.
Name |
Type |
Required |
Description |
Default |
Example |
applicationId |
string |
Y |
ID associated with the application |
|
575ec8687ae143cd83dc4a97 |
dataTableId |
string |
Y |
ID associated with the data table |
|
575ed78e7ae143cd83dc4aab |
losantdomain |
string |
N |
Domain scope of request (rarely needed) |
|
example.com |
Code |
Type |
Description |
200 |
Data Table |
Data table information |
Code |
Type |
Description |
400 |
Error |
Error if malformed request |
404 |
Error |
Error if data table was not found |
Updates information about a data table
var params = {
applicationId: myApplicationId,
dataTableId: myDataTableId,
dataTable: myDataTable
};
// with callbacks
client.dataTable.patch(params, function (err, result) {
if (err) { return console.error(err); }
console.log(result);
});
// with promises
client.dataTable.patch(params)
.then(console.log)
.catch(console.error);
The client must be configured with a valid api access token to call this
action. The token must include at least one of the following scopes:
all.Application, all.Organization, all.User, dataTable.*, or dataTable.patch.
Name |
Type |
Required |
Description |
Default |
Example |
applicationId |
string |
Y |
ID associated with the application |
|
575ec8687ae143cd83dc4a97 |
dataTableId |
string |
Y |
ID associated with the data table |
|
575ed78e7ae143cd83dc4aab |
dataTable |
Data Table Patch |
Y |
Object containing updated properties of the data table |
|
Data Table Patch Example |
losantdomain |
string |
N |
Domain scope of request (rarely needed) |
|
example.com |
Code |
Type |
Description |
200 |
Data Table |
Updated data table information |
Code |
Type |
Description |
400 |
Error |
Error if malformed request |
404 |
Error |
Error if data table was not found |
Removes a column from this data table
var params = {
applicationId: myApplicationId,
dataTableId: myDataTableId,
columnName: myColumnName
};
// with callbacks
client.dataTable.removeColumn(params, function (err, result) {
if (err) { return console.error(err); }
console.log(result);
});
// with promises
client.dataTable.removeColumn(params)
.then(console.log)
.catch(console.error);
The client must be configured with a valid api access token to call this
action. The token must include at least one of the following scopes:
all.Application, all.Organization, all.User, dataTable.*, or dataTable.removeColumn.
Name |
Type |
Required |
Description |
Default |
Example |
applicationId |
string |
Y |
ID associated with the application |
|
575ec8687ae143cd83dc4a97 |
dataTableId |
string |
Y |
ID associated with the data table |
|
575ed78e7ae143cd83dc4aab |
columnName |
string |
Y |
Name of the column to remove |
|
myColumnName |
losantdomain |
string |
N |
Domain scope of request (rarely needed) |
|
example.com |
Code |
Type |
Description |
200 |
Data Table |
Updated data table information |
Code |
Type |
Description |
400 |
Error |
Error if malformed request |
404 |
Error |
Error if data table was not found |