All URIs are relative to https://api.notefile.net
Method | HTTP request | Description |
---|---|---|
cloneProject | POST /v1/projects/{projectUID}/clone | |
createFleet | POST /v1/projects/{projectUID}/fleets | |
createProduct | POST /v1/projects/{projectUID}/products | |
createProject | POST /v1/projects | |
deleteDeviceFleets | DELETE /v1/projects/{projectUID}/devices/{deviceUID}/fleets | |
deleteFleet | DELETE /v1/projects/{projectUID}/fleets/{fleetUID} | |
deleteFleetEnvironmentVariable | DELETE /v1/projects/{projectUID}/fleets/{fleetUID}/environment_variables/{key} | |
deleteProject | DELETE /v1/projects/{projectUID} | |
deleteProjectEnvironmentVariable | DELETE /v1/projects/{projectUID}/environment_variables/{key} | |
dfuAction | POST /v1/projects/{projectUID}/dfu/{firmwareType}/{action} | |
disableGlobalTransformation | POST /v1/projects/{projectUID}/global-transformation/disable | |
enableGlobalTransformation | POST /v1/projects/{projectUID}/global-transformation/enable | |
getDeviceDfuHistory | GET /v1/projects/{projectUID}/devices/{deviceUID}/dfu/{firmwareType}/history | |
getDeviceDfuStatus | GET /v1/projects/{projectUID}/devices/{deviceUID}/dfu/{firmwareType}/status | |
getDeviceFleets | GET /v1/projects/{projectUID}/devices/{deviceUID}/fleets | |
getDevicesDfuHistory | GET /v1/projects/{projectUID}/dfu/{firmwareType}/history | |
getDevicesDfuStatus | GET /v1/projects/{projectUID}/dfu/{firmwareType}/status | |
getFirmwareInfo | GET /v1/projects/{projectUID}/firmware | |
getFleet | GET /v1/projects/{projectUID}/fleets/{fleetUID} | |
getFleetEnvironmentVariables | GET /v1/projects/{projectUID}/fleets/{fleetUID}/environment_variables | |
getProject | GET /v1/projects/{projectUID} | |
getProjectByProduct | GET /v1/products/{productUID}/project | |
getProjectEnvironmentVariables | GET /v1/projects/{projectUID}/environment_variables | |
getProjectFleets | GET /v1/projects/{projectUID}/fleets | |
getProjectMembers | GET /v1/projects/{projectUID}/members | |
getProjectProducts | GET /v1/projects/{projectUID}/products | |
getProjects | GET /v1/projects | |
putDeviceFleets | PUT /v1/projects/{projectUID}/devices/{deviceUID}/fleets | |
putFleetEnvironmentVariables | PUT /v1/projects/{projectUID}/fleets/{fleetUID}/environment_variables | |
putProjectEnvironmentVariables | PUT /v1/projects/{projectUID}/environment_variables | |
setGlobalTransformation | POST /v1/projects/{projectUID}/global-transformation | |
updateFleet | PUT /v1/projects/{projectUID}/fleets/{fleetUID} |
Project cloneProject(projectUID, cloneProjectRequest)
Clone a Project
import * as NotehubJs from "@blues-inc/notehub-js";
let defaultClient = NotehubJs.ApiClient.instance;
// Configure API key authorization: api_key
let api_key = defaultClient.authentications["api_key"];
api_key.apiKey = "YOUR API KEY";
let apiInstance = new NotehubJs.ProjectApi();
let projectUID = "projectUID_example"; // String | The project UID to be cloned.
let cloneProjectRequest = new NotehubJs.CloneProjectRequest(); // CloneProjectRequest | Project to be cloned
apiInstance.cloneProject(projectUID, cloneProjectRequest).then(
(data) => {
console.log(
"API called successfully. Returned data: " + JSON.stringify(data)
);
},
(error) => {
console.error(error);
}
);
Name | Type | Description | Notes |
---|---|---|---|
projectUID | String | The project UID to be cloned. | |
cloneProjectRequest | CloneProjectRequest | Project to be cloned |
- Content-Type: application/json
- Accept: application/json
Fleet createFleet(projectUID, createFleetRequest)
Create Fleet
import * as NotehubJs from '@blues-inc/notehub-js';
let defaultClient = NotehubJs.ApiClient.instance;
// Configure API key authorization: api_key
let api_key = defaultClient.authentications['api_key'];
api_key.apiKey = 'YOUR API KEY';
let apiInstance = new NotehubJs.ProjectApi();
let projectUID = app:2606f411-dea6-44a0-9743-1130f57d77d8; // String |
let createFleetRequest = new NotehubJs.CreateFleetRequest(); // CreateFleetRequest | Fleet to be added
apiInstance.createFleet(projectUID, createFleetRequest).then((data) => {
console.log('API called successfully. Returned data: ' + JSON.stringify(data));
}, (error) => {
console.error(error);
});
Name | Type | Description | Notes |
---|---|---|---|
projectUID | String | ||
createFleetRequest | CreateFleetRequest | Fleet to be added |
- Content-Type: application/json
- Accept: application/json
Product createProduct(projectUID, createProductRequest)
Create Product within a Project
import * as NotehubJs from '@blues-inc/notehub-js';
let defaultClient = NotehubJs.ApiClient.instance;
// Configure API key authorization: api_key
let api_key = defaultClient.authentications['api_key'];
api_key.apiKey = 'YOUR API KEY';
let apiInstance = new NotehubJs.ProjectApi();
let projectUID = app:2606f411-dea6-44a0-9743-1130f57d77d8; // String |
let createProductRequest = new NotehubJs.CreateProductRequest(); // CreateProductRequest | Product to be created
apiInstance.createProduct(projectUID, createProductRequest).then((data) => {
console.log('API called successfully. Returned data: ' + JSON.stringify(data));
}, (error) => {
console.error(error);
});
Name | Type | Description | Notes |
---|---|---|---|
projectUID | String | ||
createProductRequest | CreateProductRequest | Product to be created |
- Content-Type: application/json
- Accept: application/json
Project createProject(createProjectRequest)
Create a Project
import * as NotehubJs from "@blues-inc/notehub-js";
let defaultClient = NotehubJs.ApiClient.instance;
// Configure API key authorization: api_key
let api_key = defaultClient.authentications["api_key"];
api_key.apiKey = "YOUR API KEY";
let apiInstance = new NotehubJs.ProjectApi();
let createProjectRequest = new NotehubJs.CreateProjectRequest(); // CreateProjectRequest | Project to be created
apiInstance.createProject(createProjectRequest).then(
(data) => {
console.log(
"API called successfully. Returned data: " + JSON.stringify(data)
);
},
(error) => {
console.error(error);
}
);
Name | Type | Description | Notes |
---|---|---|---|
createProjectRequest | CreateProjectRequest | Project to be created |
- Content-Type: application/json
- Accept: application/json
GetProjectFleets200Response deleteDeviceFleets(projectUID, deviceUID, deleteDeviceFleetsRequest)
Remove Device from Fleets
import * as NotehubJs from '@blues-inc/notehub-js';
let defaultClient = NotehubJs.ApiClient.instance;
// Configure API key authorization: api_key
let api_key = defaultClient.authentications['api_key'];
api_key.apiKey = 'YOUR API KEY';
let apiInstance = new NotehubJs.ProjectApi();
let projectUID = app:2606f411-dea6-44a0-9743-1130f57d77d8; // String |
let deviceUID = dev:000000000000000; // String |
let deleteDeviceFleetsRequest = new NotehubJs.DeleteDeviceFleetsRequest(); // DeleteDeviceFleetsRequest | The fleets to remove from the device. Note that the endpoint takes an array of fleetUIDs, to facilitate multi-fleet devices. Multi-fleet is not yet enabled on all SaaS plans - unless it is supported by the SaaS plan of the project, passing more than a single fleetUID in the array is an error.
apiInstance.deleteDeviceFleets(projectUID, deviceUID, deleteDeviceFleetsRequest).then((data) => {
console.log('API called successfully. Returned data: ' + JSON.stringify(data));
}, (error) => {
console.error(error);
});
Name | Type | Description | Notes |
---|---|---|---|
projectUID | String | ||
deviceUID | String | ||
deleteDeviceFleetsRequest | DeleteDeviceFleetsRequest | The fleets to remove from the device. Note that the endpoint takes an array of fleetUIDs, to facilitate multi-fleet devices. Multi-fleet is not yet enabled on all SaaS plans - unless it is supported by the SaaS plan of the project, passing more than a single fleetUID in the array is an error. |
- Content-Type: application/json
- Accept: application/json
deleteFleet(projectUID, fleetUID)
Delete Fleet
import * as NotehubJs from '@blues-inc/notehub-js';
let defaultClient = NotehubJs.ApiClient.instance;
// Configure API key authorization: api_key
let api_key = defaultClient.authentications['api_key'];
api_key.apiKey = 'YOUR API KEY';
let apiInstance = new NotehubJs.ProjectApi();
let projectUID = app:2606f411-dea6-44a0-9743-1130f57d77d8; // String |
let fleetUID = "fleetUID_example"; // String |
apiInstance.deleteFleet(projectUID, fleetUID).then(() => {
console.log('API called successfully.');
}, (error) => {
console.error(error);
});
Name | Type | Description | Notes |
---|---|---|---|
projectUID | String | ||
fleetUID | String |
null (empty response body)
- Content-Type: Not defined
- Accept: application/json
EnvironmentVariables deleteFleetEnvironmentVariable(projectUID, fleetUID, key)
Delete environment variables of a fleet
import * as NotehubJs from '@blues-inc/notehub-js';
let defaultClient = NotehubJs.ApiClient.instance;
// Configure API key authorization: api_key
let api_key = defaultClient.authentications['api_key'];
api_key.apiKey = 'YOUR API KEY';
let apiInstance = new NotehubJs.ProjectApi();
let projectUID = app:2606f411-dea6-44a0-9743-1130f57d77d8; // String |
let fleetUID = "fleetUID_example"; // String |
let key = "key_example"; // String | The environment variable key to delete.
apiInstance.deleteFleetEnvironmentVariable(projectUID, fleetUID, key).then((data) => {
console.log('API called successfully. Returned data: ' + JSON.stringify(data));
}, (error) => {
console.error(error);
});
Name | Type | Description | Notes |
---|---|---|---|
projectUID | String | ||
fleetUID | String | ||
key | String | The environment variable key to delete. |
- Content-Type: Not defined
- Accept: application/json
deleteProject(projectUID)
Delete a Project by ProjectUID
import * as NotehubJs from '@blues-inc/notehub-js';
let defaultClient = NotehubJs.ApiClient.instance;
// Configure API key authorization: api_key
let api_key = defaultClient.authentications['api_key'];
api_key.apiKey = 'YOUR API KEY';
let apiInstance = new NotehubJs.ProjectApi();
let projectUID = app:2606f411-dea6-44a0-9743-1130f57d77d8; // String |
apiInstance.deleteProject(projectUID).then(() => {
console.log('API called successfully.');
}, (error) => {
console.error(error);
});
Name | Type | Description | Notes |
---|---|---|---|
projectUID | String |
null (empty response body)
- Content-Type: Not defined
- Accept: application/json
EnvironmentVariables deleteProjectEnvironmentVariable(projectUID, key)
Delete an environment variable of a project by key
import * as NotehubJs from '@blues-inc/notehub-js';
let defaultClient = NotehubJs.ApiClient.instance;
// Configure API key authorization: api_key
let api_key = defaultClient.authentications['api_key'];
api_key.apiKey = 'YOUR API KEY';
let apiInstance = new NotehubJs.ProjectApi();
let projectUID = app:2606f411-dea6-44a0-9743-1130f57d77d8; // String |
let key = "key_example"; // String | The environment variable key to delete.
apiInstance.deleteProjectEnvironmentVariable(projectUID, key).then((data) => {
console.log('API called successfully. Returned data: ' + JSON.stringify(data));
}, (error) => {
console.error(error);
});
Name | Type | Description | Notes |
---|---|---|---|
projectUID | String | ||
key | String | The environment variable key to delete. |
- Content-Type: Not defined
- Accept: application/json
dfuAction(projectUID, firmwareType, action, opts)
Update/cancel host or notecard firmware updates
import * as NotehubJs from '@blues-inc/notehub-js';
let defaultClient = NotehubJs.ApiClient.instance;
// Configure API key authorization: api_key
let api_key = defaultClient.authentications['api_key'];
api_key.apiKey = 'YOUR API KEY';
let apiInstance = new NotehubJs.ProjectApi();
let projectUID = app:2606f411-dea6-44a0-9743-1130f57d77d8; // String |
let firmwareType = "firmwareType_example"; // String |
let action = "action_example"; // String |
let opts = {
'deviceUID': ["null"], // [String] | A Device UID.
'tag': ["null"], // [String] | Tag filter
'serialNumber': ["null"], // [String] | Serial number filter
'fleetUID': "fleetUID_example", // String |
'notecardFirmware': ["null"], // [String] | Firmware version filter
'location': ["null"], // [String] | Location filter
'hostFirmware': ["null"], // [String] | Host firmware filter
'productUID': ["null"], // [String] |
'sku': ["null"], // [String] | SKU filter
'dfuActionRequest': new NotehubJs.DfuActionRequest() // DfuActionRequest | Which firmware in the case of an update action
};
apiInstance.dfuAction(projectUID, firmwareType, action, opts).then(() => {
console.log('API called successfully.');
}, (error) => {
console.error(error);
});
Name | Type | Description | Notes |
---|---|---|---|
projectUID | String | ||
firmwareType | String | ||
action | String | ||
deviceUID | [String] | A Device UID. | [optional] |
tag | [String] | Tag filter | [optional] |
serialNumber | [String] | Serial number filter | [optional] |
fleetUID | String | [optional] | |
notecardFirmware | [String] | Firmware version filter | [optional] |
location | [String] | Location filter | [optional] |
hostFirmware | [String] | Host firmware filter | [optional] |
productUID | [String] | [optional] | |
sku | [String] | SKU filter | [optional] |
dfuActionRequest | DfuActionRequest | Which firmware in the case of an update action | [optional] |
null (empty response body)
- Content-Type: application/json
- Accept: application/json
disableGlobalTransformation(projectUID)
Disable the project-level event JSONata transformation
import * as NotehubJs from '@blues-inc/notehub-js';
let defaultClient = NotehubJs.ApiClient.instance;
// Configure API key authorization: api_key
let api_key = defaultClient.authentications['api_key'];
api_key.apiKey = 'YOUR API KEY';
let apiInstance = new NotehubJs.ProjectApi();
let projectUID = app:2606f411-dea6-44a0-9743-1130f57d77d8; // String |
apiInstance.disableGlobalTransformation(projectUID).then(() => {
console.log('API called successfully.');
}, (error) => {
console.error(error);
});
Name | Type | Description | Notes |
---|---|---|---|
projectUID | String |
null (empty response body)
- Content-Type: Not defined
- Accept: application/json
enableGlobalTransformation(projectUID)
Enable the project-level event JSONata transformation
import * as NotehubJs from '@blues-inc/notehub-js';
let defaultClient = NotehubJs.ApiClient.instance;
// Configure API key authorization: api_key
let api_key = defaultClient.authentications['api_key'];
api_key.apiKey = 'YOUR API KEY';
let apiInstance = new NotehubJs.ProjectApi();
let projectUID = app:2606f411-dea6-44a0-9743-1130f57d77d8; // String |
apiInstance.enableGlobalTransformation(projectUID).then(() => {
console.log('API called successfully.');
}, (error) => {
console.error(error);
});
Name | Type | Description | Notes |
---|---|---|---|
projectUID | String |
null (empty response body)
- Content-Type: Not defined
- Accept: application/json
DeviceDfuHistory getDeviceDfuHistory(projectUID, deviceUID, firmwareType)
Get device DFU history for host or Notecard firmware
import * as NotehubJs from '@blues-inc/notehub-js';
let defaultClient = NotehubJs.ApiClient.instance;
// Configure API key authorization: api_key
let api_key = defaultClient.authentications['api_key'];
api_key.apiKey = 'YOUR API KEY';
let apiInstance = new NotehubJs.ProjectApi();
let projectUID = app:2606f411-dea6-44a0-9743-1130f57d77d8; // String |
let deviceUID = dev:000000000000000; // String |
let firmwareType = "firmwareType_example"; // String |
apiInstance.getDeviceDfuHistory(projectUID, deviceUID, firmwareType).then((data) => {
console.log('API called successfully. Returned data: ' + JSON.stringify(data));
}, (error) => {
console.error(error);
});
Name | Type | Description | Notes |
---|---|---|---|
projectUID | String | ||
deviceUID | String | ||
firmwareType | String |
- Content-Type: Not defined
- Accept: application/json
DeviceDfuStatus getDeviceDfuStatus(projectUID, deviceUID, firmwareType)
Get device DFU history for host or Notecard firmware
import * as NotehubJs from '@blues-inc/notehub-js';
let defaultClient = NotehubJs.ApiClient.instance;
// Configure API key authorization: api_key
let api_key = defaultClient.authentications['api_key'];
api_key.apiKey = 'YOUR API KEY';
let apiInstance = new NotehubJs.ProjectApi();
let projectUID = app:2606f411-dea6-44a0-9743-1130f57d77d8; // String |
let deviceUID = dev:000000000000000; // String |
let firmwareType = "firmwareType_example"; // String |
apiInstance.getDeviceDfuStatus(projectUID, deviceUID, firmwareType).then((data) => {
console.log('API called successfully. Returned data: ' + JSON.stringify(data));
}, (error) => {
console.error(error);
});
Name | Type | Description | Notes |
---|---|---|---|
projectUID | String | ||
deviceUID | String | ||
firmwareType | String |
- Content-Type: Not defined
- Accept: application/json
GetProjectFleets200Response getDeviceFleets(projectUID, deviceUID)
Get Device Fleets
import * as NotehubJs from '@blues-inc/notehub-js';
let defaultClient = NotehubJs.ApiClient.instance;
// Configure API key authorization: api_key
let api_key = defaultClient.authentications['api_key'];
api_key.apiKey = 'YOUR API KEY';
let apiInstance = new NotehubJs.ProjectApi();
let projectUID = app:2606f411-dea6-44a0-9743-1130f57d77d8; // String |
let deviceUID = dev:000000000000000; // String |
apiInstance.getDeviceFleets(projectUID, deviceUID).then((data) => {
console.log('API called successfully. Returned data: ' + JSON.stringify(data));
}, (error) => {
console.error(error);
});
Name | Type | Description | Notes |
---|---|---|---|
projectUID | String | ||
deviceUID | String |
- Content-Type: Not defined
- Accept: application/json
DeviceDfuHistoryPage getDevicesDfuHistory(projectUID, firmwareType, opts)
Get host or Notecard DFU history for all devices that match the filter criteria
import * as NotehubJs from '@blues-inc/notehub-js';
let defaultClient = NotehubJs.ApiClient.instance;
// Configure API key authorization: api_key
let api_key = defaultClient.authentications['api_key'];
api_key.apiKey = 'YOUR API KEY';
let apiInstance = new NotehubJs.ProjectApi();
let projectUID = app:2606f411-dea6-44a0-9743-1130f57d77d8; // String |
let firmwareType = "firmwareType_example"; // String |
let opts = {
'pageSize': 50, // Number |
'pageNum': 1, // Number |
'sortBy': "'captured'", // String |
'sortOrder': "'asc'", // String |
'deviceUID': ["null"], // [String] | A Device UID.
'tag': ["null"], // [String] | Tag filter
'serialNumber': ["null"], // [String] | Serial number filter
'fleetUID': "fleetUID_example", // String |
'notecardFirmware': ["null"], // [String] | Firmware version filter
'location': ["null"], // [String] | Location filter
'hostFirmware': ["null"], // [String] | Host firmware filter
'productUID': ["null"], // [String] |
'sku': ["null"] // [String] | SKU filter
};
apiInstance.getDevicesDfuHistory(projectUID, firmwareType, opts).then((data) => {
console.log('API called successfully. Returned data: ' + JSON.stringify(data));
}, (error) => {
console.error(error);
});
Name | Type | Description | Notes |
---|---|---|---|
projectUID | String | ||
firmwareType | String | ||
pageSize | Number | [optional] [default to 50] | |
pageNum | Number | [optional] [default to 1] | |
sortBy | String | [optional] [default to 'captured'] | |
sortOrder | String | [optional] [default to 'asc'] | |
deviceUID | [String] | A Device UID. | [optional] |
tag | [String] | Tag filter | [optional] |
serialNumber | [String] | Serial number filter | [optional] |
fleetUID | String | [optional] | |
notecardFirmware | [String] | Firmware version filter | [optional] |
location | [String] | Location filter | [optional] |
hostFirmware | [String] | Host firmware filter | [optional] |
productUID | [String] | [optional] | |
sku | [String] | SKU filter | [optional] |
- Content-Type: Not defined
- Accept: application/json
DeviceDfuStatusPage getDevicesDfuStatus(projectUID, firmwareType, opts)
Get host or Notecard DFU history for all devices that match the filter criteria
import * as NotehubJs from '@blues-inc/notehub-js';
let defaultClient = NotehubJs.ApiClient.instance;
// Configure API key authorization: api_key
let api_key = defaultClient.authentications['api_key'];
api_key.apiKey = 'YOUR API KEY';
let apiInstance = new NotehubJs.ProjectApi();
let projectUID = app:2606f411-dea6-44a0-9743-1130f57d77d8; // String |
let firmwareType = "firmwareType_example"; // String |
let opts = {
'pageSize': 50, // Number |
'pageNum': 1, // Number |
'sortBy': "'captured'", // String |
'sortOrder': "'asc'", // String |
'deviceUID': ["null"], // [String] | A Device UID.
'tag': ["null"], // [String] | Tag filter
'serialNumber': ["null"], // [String] | Serial number filter
'fleetUID': "fleetUID_example", // String |
'notecardFirmware': ["null"], // [String] | Firmware version filter
'location': ["null"], // [String] | Location filter
'hostFirmware': ["null"], // [String] | Host firmware filter
'productUID': ["null"], // [String] |
'sku': ["null"] // [String] | SKU filter
};
apiInstance.getDevicesDfuStatus(projectUID, firmwareType, opts).then((data) => {
console.log('API called successfully. Returned data: ' + JSON.stringify(data));
}, (error) => {
console.error(error);
});
Name | Type | Description | Notes |
---|---|---|---|
projectUID | String | ||
firmwareType | String | ||
pageSize | Number | [optional] [default to 50] | |
pageNum | Number | [optional] [default to 1] | |
sortBy | String | [optional] [default to 'captured'] | |
sortOrder | String | [optional] [default to 'asc'] | |
deviceUID | [String] | A Device UID. | [optional] |
tag | [String] | Tag filter | [optional] |
serialNumber | [String] | Serial number filter | [optional] |
fleetUID | String | [optional] | |
notecardFirmware | [String] | Firmware version filter | [optional] |
location | [String] | Location filter | [optional] |
hostFirmware | [String] | Host firmware filter | [optional] |
productUID | [String] | [optional] | |
sku | [String] | SKU filter | [optional] |
- Content-Type: Not defined
- Accept: application/json
[FirmwareInfo] getFirmwareInfo(projectUID, opts)
Get Available Firmware Information
import * as NotehubJs from '@blues-inc/notehub-js';
let defaultClient = NotehubJs.ApiClient.instance;
// Configure API key authorization: api_key
let api_key = defaultClient.authentications['api_key'];
api_key.apiKey = 'YOUR API KEY';
let apiInstance = new NotehubJs.ProjectApi();
let projectUID = app:2606f411-dea6-44a0-9743-1130f57d77d8; // String |
let opts = {
'product': "product_example", // String |
'firmwareType': "firmwareType_example", // String |
'version': "version_example", // String |
'target': "target_example", // String |
'filename': notecard-7.2.2.16518$20240410043100.bin, // String |
'md5': "md5_example", // String |
'unpublished': true // Boolean |
};
apiInstance.getFirmwareInfo(projectUID, opts).then((data) => {
console.log('API called successfully. Returned data: ' + JSON.stringify(data));
}, (error) => {
console.error(error);
});
Name | Type | Description | Notes |
---|---|---|---|
projectUID | String | ||
product | String | [optional] | |
firmwareType | String | [optional] | |
version | String | [optional] | |
target | String | [optional] | |
filename | String | [optional] | |
md5 | String | [optional] | |
unpublished | Boolean | [optional] |
- Content-Type: Not defined
- Accept: application/json
Fleet getFleet(projectUID, fleetUID)
Get Fleet
import * as NotehubJs from '@blues-inc/notehub-js';
let defaultClient = NotehubJs.ApiClient.instance;
// Configure API key authorization: api_key
let api_key = defaultClient.authentications['api_key'];
api_key.apiKey = 'YOUR API KEY';
let apiInstance = new NotehubJs.ProjectApi();
let projectUID = app:2606f411-dea6-44a0-9743-1130f57d77d8; // String |
let fleetUID = "fleetUID_example"; // String |
apiInstance.getFleet(projectUID, fleetUID).then((data) => {
console.log('API called successfully. Returned data: ' + JSON.stringify(data));
}, (error) => {
console.error(error);
});
Name | Type | Description | Notes |
---|---|---|---|
projectUID | String | ||
fleetUID | String |
- Content-Type: Not defined
- Accept: application/json
EnvironmentVariables getFleetEnvironmentVariables(projectUID, fleetUID)
Get environment variables of a fleet
import * as NotehubJs from '@blues-inc/notehub-js';
let defaultClient = NotehubJs.ApiClient.instance;
// Configure API key authorization: api_key
let api_key = defaultClient.authentications['api_key'];
api_key.apiKey = 'YOUR API KEY';
let apiInstance = new NotehubJs.ProjectApi();
let projectUID = app:2606f411-dea6-44a0-9743-1130f57d77d8; // String |
let fleetUID = "fleetUID_example"; // String |
apiInstance.getFleetEnvironmentVariables(projectUID, fleetUID).then((data) => {
console.log('API called successfully. Returned data: ' + JSON.stringify(data));
}, (error) => {
console.error(error);
});
Name | Type | Description | Notes |
---|---|---|---|
projectUID | String | ||
fleetUID | String |
- Content-Type: Not defined
- Accept: application/json
Project getProject(projectUID)
Get a Project by ProjectUID
import * as NotehubJs from '@blues-inc/notehub-js';
let defaultClient = NotehubJs.ApiClient.instance;
// Configure API key authorization: api_key
let api_key = defaultClient.authentications['api_key'];
api_key.apiKey = 'YOUR API KEY';
let apiInstance = new NotehubJs.ProjectApi();
let projectUID = app:2606f411-dea6-44a0-9743-1130f57d77d8; // String |
apiInstance.getProject(projectUID).then((data) => {
console.log('API called successfully. Returned data: ' + JSON.stringify(data));
}, (error) => {
console.error(error);
});
Name | Type | Description | Notes |
---|---|---|---|
projectUID | String |
- Content-Type: Not defined
- Accept: application/json
Project getProjectByProduct(productUID)
Get a Project by ProductUID
import * as NotehubJs from "@blues-inc/notehub-js";
let defaultClient = NotehubJs.ApiClient.instance;
// Configure API key authorization: api_key
let api_key = defaultClient.authentications["api_key"];
api_key.apiKey = "YOUR API KEY";
let apiInstance = new NotehubJs.ProjectApi();
let productUID = com.blues.airnote; // String |
apiInstance.getProjectByProduct(productUID).then(
(data) => {
console.log(
"API called successfully. Returned data: " + JSON.stringify(data)
);
},
(error) => {
console.error(error);
}
);
Name | Type | Description | Notes |
---|---|---|---|
productUID | String |
- Content-Type: Not defined
- Accept: application/json
EnvironmentVariables getProjectEnvironmentVariables(projectUID)
Get environment variables of a project
import * as NotehubJs from '@blues-inc/notehub-js';
let defaultClient = NotehubJs.ApiClient.instance;
// Configure API key authorization: api_key
let api_key = defaultClient.authentications['api_key'];
api_key.apiKey = 'YOUR API KEY';
let apiInstance = new NotehubJs.ProjectApi();
let projectUID = app:2606f411-dea6-44a0-9743-1130f57d77d8; // String |
apiInstance.getProjectEnvironmentVariables(projectUID).then((data) => {
console.log('API called successfully. Returned data: ' + JSON.stringify(data));
}, (error) => {
console.error(error);
});
Name | Type | Description | Notes |
---|---|---|---|
projectUID | String |
- Content-Type: Not defined
- Accept: application/json
GetProjectFleets200Response getProjectFleets(projectUID)
Get Project Fleets
import * as NotehubJs from '@blues-inc/notehub-js';
let defaultClient = NotehubJs.ApiClient.instance;
// Configure API key authorization: api_key
let api_key = defaultClient.authentications['api_key'];
api_key.apiKey = 'YOUR API KEY';
let apiInstance = new NotehubJs.ProjectApi();
let projectUID = app:2606f411-dea6-44a0-9743-1130f57d77d8; // String |
apiInstance.getProjectFleets(projectUID).then((data) => {
console.log('API called successfully. Returned data: ' + JSON.stringify(data));
}, (error) => {
console.error(error);
});
Name | Type | Description | Notes |
---|---|---|---|
projectUID | String |
- Content-Type: Not defined
- Accept: application/json
GetProjectMembers200Response getProjectMembers(projectUID)
Get Project Members
import * as NotehubJs from '@blues-inc/notehub-js';
let defaultClient = NotehubJs.ApiClient.instance;
// Configure API key authorization: api_key
let api_key = defaultClient.authentications['api_key'];
api_key.apiKey = 'YOUR API KEY';
let apiInstance = new NotehubJs.ProjectApi();
let projectUID = app:2606f411-dea6-44a0-9743-1130f57d77d8; // String |
apiInstance.getProjectMembers(projectUID).then((data) => {
console.log('API called successfully. Returned data: ' + JSON.stringify(data));
}, (error) => {
console.error(error);
});
Name | Type | Description | Notes |
---|---|---|---|
projectUID | String |
- Content-Type: Not defined
- Accept: application/json
GetProjectProducts200Response getProjectProducts(projectUID)
Get Products within a Project
import * as NotehubJs from '@blues-inc/notehub-js';
let defaultClient = NotehubJs.ApiClient.instance;
// Configure API key authorization: api_key
let api_key = defaultClient.authentications['api_key'];
api_key.apiKey = 'YOUR API KEY';
let apiInstance = new NotehubJs.ProjectApi();
let projectUID = app:2606f411-dea6-44a0-9743-1130f57d77d8; // String |
apiInstance.getProjectProducts(projectUID).then((data) => {
console.log('API called successfully. Returned data: ' + JSON.stringify(data));
}, (error) => {
console.error(error);
});
Name | Type | Description | Notes |
---|---|---|---|
projectUID | String |
- Content-Type: Not defined
- Accept: application/json
GetProjects200Response getProjects()
Get Projects accessible by the api_key
import * as NotehubJs from "@blues-inc/notehub-js";
let defaultClient = NotehubJs.ApiClient.instance;
// Configure API key authorization: api_key
let api_key = defaultClient.authentications["api_key"];
api_key.apiKey = "YOUR API KEY";
let apiInstance = new NotehubJs.ProjectApi();
apiInstance.getProjects().then(
(data) => {
console.log(
"API called successfully. Returned data: " + JSON.stringify(data)
);
},
(error) => {
console.error(error);
}
);
This endpoint does not need any parameter.
- Content-Type: Not defined
- Accept: application/json
GetProjectFleets200Response putDeviceFleets(projectUID, deviceUID, putDeviceFleetsRequest)
Add Device to Fleets
import * as NotehubJs from '@blues-inc/notehub-js';
let defaultClient = NotehubJs.ApiClient.instance;
// Configure API key authorization: api_key
let api_key = defaultClient.authentications['api_key'];
api_key.apiKey = 'YOUR API KEY';
let apiInstance = new NotehubJs.ProjectApi();
let projectUID = app:2606f411-dea6-44a0-9743-1130f57d77d8; // String |
let deviceUID = dev:000000000000000; // String |
let putDeviceFleetsRequest = new NotehubJs.PutDeviceFleetsRequest(); // PutDeviceFleetsRequest | The fleets to add to the device. Note that the endpoint takes an array of fleetUIDs, to facilitate multi-fleet devices. Multi-fleet is not yet enabled on all SaaS plans - unless it is supported by the SaaS plan of the project, passing more than a single fleetUID in the array is an error.
apiInstance.putDeviceFleets(projectUID, deviceUID, putDeviceFleetsRequest).then((data) => {
console.log('API called successfully. Returned data: ' + JSON.stringify(data));
}, (error) => {
console.error(error);
});
Name | Type | Description | Notes |
---|---|---|---|
projectUID | String | ||
deviceUID | String | ||
putDeviceFleetsRequest | PutDeviceFleetsRequest | The fleets to add to the device. Note that the endpoint takes an array of fleetUIDs, to facilitate multi-fleet devices. Multi-fleet is not yet enabled on all SaaS plans - unless it is supported by the SaaS plan of the project, passing more than a single fleetUID in the array is an error. |
- Content-Type: application/json
- Accept: application/json
EnvironmentVariables putFleetEnvironmentVariables(projectUID, fleetUID, environmentVariables)
Put environment variables of a fleet
import * as NotehubJs from '@blues-inc/notehub-js';
let defaultClient = NotehubJs.ApiClient.instance;
// Configure API key authorization: api_key
let api_key = defaultClient.authentications['api_key'];
api_key.apiKey = 'YOUR API KEY';
let apiInstance = new NotehubJs.ProjectApi();
let projectUID = app:2606f411-dea6-44a0-9743-1130f57d77d8; // String |
let fleetUID = "fleetUID_example"; // String |
let environmentVariables = new NotehubJs.EnvironmentVariables(); // EnvironmentVariables | Environment variables to be added to the fleet
apiInstance.putFleetEnvironmentVariables(projectUID, fleetUID, environmentVariables).then((data) => {
console.log('API called successfully. Returned data: ' + JSON.stringify(data));
}, (error) => {
console.error(error);
});
Name | Type | Description | Notes |
---|---|---|---|
projectUID | String | ||
fleetUID | String | ||
environmentVariables | EnvironmentVariables | Environment variables to be added to the fleet |
- Content-Type: application/json
- Accept: application/json
EnvironmentVariables putProjectEnvironmentVariables(projectUID, opts)
Put environment variables of a project
import * as NotehubJs from '@blues-inc/notehub-js';
let defaultClient = NotehubJs.ApiClient.instance;
// Configure API key authorization: api_key
let api_key = defaultClient.authentications['api_key'];
api_key.apiKey = 'YOUR API KEY';
let apiInstance = new NotehubJs.ProjectApi();
let projectUID = app:2606f411-dea6-44a0-9743-1130f57d77d8; // String |
let opts = {
'environmentVariables': new NotehubJs.EnvironmentVariables() // EnvironmentVariables |
};
apiInstance.putProjectEnvironmentVariables(projectUID, opts).then((data) => {
console.log('API called successfully. Returned data: ' + JSON.stringify(data));
}, (error) => {
console.error(error);
});
Name | Type | Description | Notes |
---|---|---|---|
projectUID | String | ||
environmentVariables | EnvironmentVariables | [optional] |
- Content-Type: application/json
- Accept: application/json
setGlobalTransformation(projectUID, body)
Set the project-level event JSONata transformation
import * as NotehubJs from '@blues-inc/notehub-js';
let defaultClient = NotehubJs.ApiClient.instance;
// Configure API key authorization: api_key
let api_key = defaultClient.authentications['api_key'];
api_key.apiKey = 'YOUR API KEY';
let apiInstance = new NotehubJs.ProjectApi();
let projectUID = app:2606f411-dea6-44a0-9743-1130f57d77d8; // String |
let body = {key: null}; // Object | JSONata expression which will be applied to each event before it is persisted and routed
apiInstance.setGlobalTransformation(projectUID, body).then(() => {
console.log('API called successfully.');
}, (error) => {
console.error(error);
});
Name | Type | Description | Notes |
---|---|---|---|
projectUID | String | ||
body | Object | JSONata expression which will be applied to each event before it is persisted and routed |
null (empty response body)
- Content-Type: application/json
- Accept: application/json
Fleet updateFleet(projectUID, fleetUID, updateFleetRequest)
Update Fleet
import * as NotehubJs from '@blues-inc/notehub-js';
let defaultClient = NotehubJs.ApiClient.instance;
// Configure API key authorization: api_key
let api_key = defaultClient.authentications['api_key'];
api_key.apiKey = 'YOUR API KEY';
let apiInstance = new NotehubJs.ProjectApi();
let projectUID = app:2606f411-dea6-44a0-9743-1130f57d77d8; // String |
let fleetUID = "fleetUID_example"; // String |
let updateFleetRequest = new NotehubJs.UpdateFleetRequest(); // UpdateFleetRequest | Fleet details to update
apiInstance.updateFleet(projectUID, fleetUID, updateFleetRequest).then((data) => {
console.log('API called successfully. Returned data: ' + JSON.stringify(data));
}, (error) => {
console.error(error);
});
Name | Type | Description | Notes |
---|---|---|---|
projectUID | String | ||
fleetUID | String | ||
updateFleetRequest | UpdateFleetRequest | Fleet details to update |
- Content-Type: application/json
- Accept: application/json