NODES

Use the Nodes API to:

  • Get a list of all nodes in the system
  • Get a single node with a specified UID
  • Get a filtered list of nodes based on specified parameters
  • Create a node
  • Edit a node
  • Delete a node
  • Assign a node to a project
  • Release a node from its project

HTTP Headers

The HTTP headers used to access all RTLS APIs are listed below. Before submitting requests to the Nodes API, set the following headers.

Header Name Example Value Description
X-User-Email admin@example.com Email of the user performing HTTP requests to the API.
X-User-Token Drv3yU7PdyqUMtr89erZ Token allowing user access to the API.
X-User-Project OfOgUA4kTs2HrmYYlFw6Jg Project identifier. Value of the project.uid field.
Set header X-USER-EMAIL

Send a request to log in using POST api/auth/log_in.json described in the Auth API. Using the email address returned in the response, set: X-USER-EMAIL = data.email

Set header X-USER-TOKEN

Send a request to log in using POST api/auth/log_in.json described in the Auth API. Using the authentication token returned in the response, set: X-USER-TOKEN = data.token

Set header X-USER-PROJECT

Send a request to get projects using GET api/projects/ described in the Projects API. You must send this request with headers X-USER-EMAIL and X-USER-TOKEN already set. Using the project UID returned in the response, set: X-USER-PROJECT = projects[i].uid

Nodes Endpoints

Functionality Method Endpoint
get nodes GET /api/nodes
get single node GET /api/nodes/{uid}
get filtered nodes GET /api/nodes
create node POST /api/nodes
edit node PUT /api/nodes/{uid}
delete node DELETE /api/nodes/{uid}
assign node to project POST /api/nodes_associations/assign
release node from project POST /api/nodes_associations/release

Endpoints

Get nodes

GET /api/nodes

Get all nodes for your project.

Response Fields

Field Description
name The name of node.
mac_address The MAC address of the node hardware.
parent_mac_address The MAC address of the parent node.
bridge_mac_address The MAC address of the bridge node.
sw_version The software version installed on the node.
sw_version.sw_str The string name of the software version.
sw_version.git The first 8 characters of the Git commit hash for the software version.
hw_info Hardware information about the node.
hw_info.ver The hardware version. The field is announced deprecated. It will be available for 6 months minimum(until May 2022). Please, use hw_info.cbid instead.
hw_info.rev The hardware revision. The field is announced deprecated. It will be available for 6 months minimum(until May 2022). Please, use hw_info.cbid instead.
hw_info.hw Bitmask hardware options, for example, accelerometer, ethernet, etc.
hw_info.fw The first 8 characters of the Git commit hash for the firmware.
hw_info.cbid The carrier board identifier.
last_heard The time stamp of the last time the node reported to the server, in UTC.
announce The announcement JSON object.
announce.flags Reserved field.
announce.ts The UTC time stamp of the time when the node was first detected by the server, in milliseconds.
announce.last_ts The UTC time stamp of the time when the node was last announced to the server, in milliseconds.
node_type The string identifier for node type:
  • WIN—a bridge or anchor
  • TO—a trackable
  • CP—undefined
uwb_trx_config The radio configuration (object with unknown inner fields).
periferial_info Reserved field.
created_at The time stamp of when the node was created, in UTC.
updated_at The time stamp of when the node was last updated, in UTC.
uid The node's unique identifier.
project_uid The unique identifier for the project.
company_uid The unique identifier for the company.
current_system_timestamp The UTC time stamp at the time of the request.
status The UTC time stamp at the time of the request.
status.ext_pow Indicates if the external power is connected:
  • true
  • false
status.low_bat Indicates if the battery is low:
  • true
  • false
status.sync Indicates if the node is synchronized:
  • true
  • false
status.tdoa Indicates if the schedule was received:
  • true
  • false
battery Parameters that describe the battery.
battery.mv The battery level, in millivolts.
battery.pr The battery level, in percentage.
node_id Unique ID of the SiteWise server.

Example Response

{
    "nodes": [
        {
            "name": "Node 1",
            "mac_address": "qstpq50by5gh",
            "parent_mac_address": "4con4u2ocv43",
            "bridge_mac_address": "63zgkgxafdva",
            "sw_version": {
                "sw_str": null,
                "git": "3631CBCE"
            },
            "hw_info": {
                "ver": 4,
                "rev": 3,
                "hw": "00D3",
                "fw": "3631CBCE",
                "cbid": "FFFF"
            },
            "last_heard": "2018-03-02T05:08:45.846Z",
            "announce": {
                "ts": 1519967325846,
                "flags": "NULL"
            },
            "node_type": "WIN",
            "uwb_trx_config": null,
            "periferial_info": null,
            "created_at": "2017-09-21T12:58:57.000Z",
            "updated_at": "2017-11-17T23:39:37.000Z",
            "uid": "wyVYB4qsC78kR7pUa9yOxp",
            "project_uid": "PvtKT6JXnOIeQb2a0DfQZ3",
            "company_uid": "lTz3FuQfBU8Eapr0pkhiGw",
            "parameters": null,
            "current_system_timestamp": "2018-05-03T18:57:30.246Z",
            "status": {
                "ext_pow": false,
                "low_bat": false,
                "sync": false,
                "tdoa": true
            },
            "node_id": 1
        }
    ]
}

Get single node

GET /api/nodes/{uid}

Get a single node with a specified node UID. To retrieve a node UID, see get nodes.

Response Fields

Field Description
name The name of node.
mac_address The MAC address of the node hardware.
parent_mac_address The MAC address of the parent node.
bridge_mac_address The MAC address of the bridge node.
sw_version The software version installed on the node.
sw_version.sw_str The string name of the software version.
sw_version.git The first 8 characters of the Git commit hash for the software version.
hw_info Hardware information about the node.
hw_info.ver The hardware version. The field is announced deprecated. It will be available for 6 months minimum(until May 2022). Please, use hw_info.cbid instead.
hw_info.rev The hardware revision. The field is announced deprecated. It will be available for 6 months minimum(until May 2022). Please, use hw_info.cbid instead.
hw_info.hw Bitmask hardware options, for example, accelerometer, ethernet, etc.
hw_info.fw The first 8 characters of the Git commit hash for the firmware.
hw_info.cbid The carrier board identifier.
last_heard The time stamp of the last time the node reported to the server, in UTC.
announce The announcement JSON object.
announce.flags Reserved field.
announce.ts The UTC time stamp of the time when the node was first detected by the server, in milliseconds.
announce.last_ts The UTC time stamp of the time when the node was last announced to the server, in milliseconds.
node_type The string identifier for node type:
  • WIN—a bridge or anchor
  • TO—a trackable
  • CP—undefined
uwb_trx_config The radio configuration (object with unknown inner fields).
periferial_info Reserved field.
created_at The time stamp of when the node was created, in UTC.
updated_at The time stamp of when the node was last updated, in UTC.
uid The node's unique identifier.
project_uid The unique identifier for the project.
company_uid The unique identifier for the company.
current_system_timestamp The UTC time stamp at the time of the request.
status The UTC time stamp at the time of the request.
status.ext_pow Indicates if the external power is connected:
  • true
  • false
status.low_bat Indicates if the battery is low:
  • true
  • false
status.sync Indicates if the node is synchronized:
  • true
  • false
status.tdoa Indicates if the schedule was received:
  • true
  • false
battery Parameters that describe the battery.
battery.mv The battery level, in millivolts.
battery.pr The battery level, in percentage.
node_id Unique ID of the SiteWise server.

Example Response

Using GET api/nodes/YZkA2GqASgCIJWOqzia3kA:

{
  "nodes": [
    {
      "name": "c001a0a00003",
      "mac_address": "c001a0a00003",
      "parent_mac_address": "v001a0a00001",
      "bridge_mac_address": "c001a0a00001",
      "sw_version": {
        "git": "432AF9FB",
        "sw_str": null
      },
      "hw_info": {
        "fw": "432AF9FB",
        "hw": "0010",
        "rev": 1,
        "ver": 0,
        "cbid": "FFFF"
      },
      "last_heard": "1969-12-31T22:00:00.000Z",
      "announce": {
        "flags": null,
        "ts": 1497255223395
      },
      "node_type": "CP",
      "uwb_trx_config": null,
      "periferial_info": null,
      "created_at": "2017-06-19T12:50:25.000Z",
      "updated_at": "2017-06-19T12:51:05.000Z",
      "uid": "YZkA2GqASgCIJWOqzia3kA",
      "project_uid": "xwacfMumRVejZlhnZhNrKw",
      "company_uid": "yKOZ2aViT-efThvsIS_Gcw",
      "current_system_timestamp": "2017-06-19T12:53:07.635Z",
      "status": null,
      "battery": {
        "mv": 4100,
        "pr": 100
      },
      "node_id": 1
    }
  ]
}

Get filtered nodes

GET /api/nodes?mac[]={mac_address}&uid[]={uid} Get a list of nodes using specified filters.

Filters

Filter the list of nodes by inputting the filter in the REST call.

Filter Input Description
uid uid[] The unique identifier of the node hardware. To retrieve a node UID, see get nodes.
mac or mac_address mac[] or mac_address[] The MAC address of the node.
fields fields[] Fields to be shown in response. Other fields are filtered out.
interval interval[] The interval of nodes to be returned. The interval is the number of seconds that have elapsed since the node's last reported activity.

Response Fields

Field Description
name The name of node.
mac_address The MAC address of the node hardware.
parent_mac_address The MAC address of the parent node.
bridge_mac_address The MAC address of the bridge node.
sw_version The software version installed on the node.
sw_version.sw_str The string name of the software version.
sw_version.git The first 8 characters of the Git commit hash for the software version.
hw_info Hardware information about the node.
hw_info.ver The hardware version. The field is announced deprecated. It will be available for 6 months minimum(until May 2022). Please, use hw_info.cbid instead.
hw_info.rev The hardware revision. The field is announced deprecated. It will be available for 6 months minimum(until May 2022). Please, use hw_info.cbid instead.
hw_info.hw Bitmask hardware options, for example, accelerometer, ethernet, etc.
hw_info.fw The first 8 characters of the Git commit hash for the firmware.
hw_info.cbid The carrier board identifier.
last_heard The time stamp of the last time the node reported to the server, in UTC.
announce The announcement JSON object.
announce.flags Reserved field.
announce.ts The UTC time stamp of the time when the node was first detected by the server, in milliseconds.
announce.last_ts The UTC time stamp of the time when the node was last announced to the server, in milliseconds.
node_type The string identifier for node type:
  • WIN—a bridge or anchor
  • TO—a trackable
  • CP—undefined
uwb_trx_config The radio configuration (object with unknown inner fields).
periferial_info Reserved field.
created_at The time stamp of when the node was created, in UTC.
updated_at The time stamp of when the node was last updated, in UTC.
uid The node's unique identifier.
project_uid The unique identifier for the project.
company_uid The unique identifier for the company.
current_system_timestamp The UTC time stamp at the time of the request.
status The UTC time stamp at the time of the request.
status.ext_pow Indicates if the external power is connected:
  • true
  • false
status.low_bat Indicates if the battery is low:
  • true
  • false
status.sync Indicates if the node is synchronized:
  • true
  • false
status.tdoa Indicates if the schedule was received:
  • true
  • false
battery Parameters that describe the battery.
battery.mv The battery level, in millivolts.
battery.pr The battery level, in percentage.
node_id Unique ID of the SiteWise server.

Example Request

GET /api/nodes?mac_address[]=c001a0a00003&mac_address[]=c001a0a00033

This example gets nodes with a mac_address c001a0a00003 and c001a0a00033. For requests that include more than one query for the same field, it is computed as a OR search. This example returns a node that contains "c001a0a00003" but does not contain "c001a0a00033"; and another node that contains "c001a0a00033" but does not contain "c001a0a00003".

Example Response

{
    "nodes": [
        {
            "name": "c001a0a00003",
            "mac_address": "c001a0a00003",
            "parent_mac_address": "v001a0a00001",
            "bridge_mac_address": "c001a0a00001",
            "sw_version": {
                "git": "432AF9FB",
                "sw_str": null
            },
            "hw_info": {
                "fw": "432AF9FB",
                "hw": "0010",
                "rev": 1,
                "ver": 0,
                "cbid": "FFFF"
            },
            "last_heard": "1969-12-31T22:00:00.000Z",
            "announce": {
                "flags": null,
                "ts": 1497255223395
            },
            "node_type": "CP",
            "uwb_trx_config": null,
            "periferial_info": null,
            "created_at": "2017-06-19T12:50:25.000Z",
            "updated_at": "2017-06-19T12:51:05.000Z",
            "uid": "YZkA2GqASgCIJWOqzia3kA",
            "project_uid": "xwacfMumRVejZlhnZhNrKw",
            "company_uid": "yKOZ2aViT-efThvsIS_Gcw",
            "current_system_timestamp": "2017-06-19T15:12:25.140Z",
            "status": null,
            "battery": {
                "mv": 4100,
                "pr": 100
            },
            "node_id": 1
        },
        {
            "name": "c001a0a00033",
            "mac_address": "c001a0a00033",
            "parent_mac_address": "v001a0a00001",
            "bridge_mac_address": "b001a0a00001",
            "sw_version": null,
            "hw_info": null,
            "last_heard": "1969-12-31T22:00:00.000Z",
            "announce": null,
            "node_type": "CP",
            "uwb_trx_config": null,
            "periferial_info": null,
            "created_at": "2017-06-19T12:51:31.000Z",
            "updated_at": "2017-06-19T12:51:31.000Z",
            "uid": "5uIihtdiSemOKapIjRjb5g",
            "project_uid": "xwacfMumRVejZlhnZhNrKw",
            "company_uid": "yKOZ2aViT-efThvsIS_Gcw",
            "current_system_timestamp": "2017-06-19T15:12:25.141Z",
            "status": null,
            "battery": null,
            "node_id": 2
        }
    ]
}

Example Request

http://server/api/nodes?mac_address[]=c001a0a00003&mac_address[]=c001a0a00033&uid[]=YZkA2GqASgCIJWOqzia3kA&fields[]=battery&fields[]=status&fields[]=mac_address

This example gets nodes with:

  • The mac_address c001a0a00003 and c001a0a00033
  • The uid YZkA2GqASgCIJWOqzia3kA

The uid and current_system_timestamp fields are returned by default. In addition, the request restricts the additional return fields for:

  • battery
  • mac_address
  • status

Example Response

{
    "nodes": [
        {
            "mac_address": "c001a0a00003",
            "uid": "YZkA2GqASgCIJWOqzia3kA",
            "current_system_timestamp": "2017-06-19T16:12:09.880Z",
            "status": null,
            "battery": {
                "mv": 4100,
                "pr": 100
            }
        }
    ]
}

Example Request

http://server/api/api/v2/nodes?interval=3600&fields[]=status&fields[]=mac_address

This request gets all nodes with interval = 3600. The interval is the number of seconds that have elapsed since node's last reported activity. You can search for all nodes or specify a MAC address for an individual node.

The UID and current_system_timestamp fields are returned by default. The last_heard field is returned by all interval requests. In addition, the request restricts the additional return fields to:

  • status
  • mac_address
  • position_y
  • interval

Example Response

 {
     "nodes": [
         {
             "mac_address": "c001a0a00003",
             "last_heard": "2017-06-20T07:51:00.000Z",
             "uid": "YZkA2GqASgCIJWOqzia3kA",
             "current_system_timestamp": "2017-06-20T08:20:22.852Z",
             "status": null
         }
     ]
 }

Create node

POST /api/nodes Creates a new node with required and optional parameters.

Request Fields

Field Required/Optional Values Type Description
mac_address required - string The MAC address of the node hardware. The MAC address can be found on a label on the hardware iteself, or by using get nodes.
name optional - string The name of node.
node_type optional
  • WIN
  • TO
  • CP
string The string identifier for node type:
  • WIN—a bridge or anchor
  • TO—a trackable
  • CP—undefined

Response Fields

Field Description
name The node name.
mac_address The MAC address of the node hardware.
parent_mac_address The MAC address of the parent node.
bridge_mac_address The MAC address of the bridge node.
sw_version The software version installed on the node.
sw_version.git The first 8 characters of the Git commit hash for the software version.
sw_version.sw_str The string name of the software version.
hw_info Hardware information about the node.
hw_info.fw The first 8 characters of the Git commit hash for the firmware.
hw_info.hw Bitmask hardware options, for example, accelerometer, ethernet, etc.
hw_info.rev The hardware revision. The field is announced deprecated. It will be available for 6 months minimum(until May 2022). Please, use hw_info.cbid instead.
hw_info.ver The hardware version. The field is announced deprecated. It will be available for 6 months minimum(until May 2022). Please, use hw_info.cbid instead.
hw_info.cbid The carrier board identifier.
last_heard The time stamp of the last time the node reported to the server, in UTC.
announce The announcement JSON object.
announce.flags Reserved field.
announce.ts The UTC time stamp of the time when the node was first detected by the server, in milliseconds.
announce.last_ts The UTC time stamp of the time when the node was last announced to the server, in milliseconds.
node_type The string identifier for node type:
  • WIN—a bridge or anchor
  • TO—a trackable
  • CP—undefined
uwb_trx_config The radio configuration (object with unknown inner fields).
periferial_info Reserved field.
created_at The time stamp of when the node was created, in UTC.
updated_at The time stamp of when the node was last updated, in UTC.
uid The node's unique identifier.
status The UTC time stamp at the time of the request.
status.sync Indicates if the node is synchronized:
  • true
  • false
status.tdoa Indicates if the schedule was received:
  • true
  • false
status.low_bat Indicates if the battery is low:
  • true
  • false
status.ext_pow Indicates if the external power is connected:
  • true
  • false
shm_status Reserved field.
current_system_timestamp The UTC time stamp at the time of the request.
battery Parameters that describe the battery.
battery.mv The battery level, in millivolts.
battery.pr The battery level, in percentage.
node_id Unique ID of the SiteWise server.

Example Request

{
    "name": "new node",
    "mac_address": "c001a0a00003",
    "node_type": "CP"
}

Example Response

{
  "name": "c001a0a00003",
  "mac_address": "c001a0a00003",
  "parent_mac_address": "c001a0a00001",
  "bridge_mac_address": "c001a0a00001",
  "sw_version": {
    "git": "432AF9FB",
    "sw_str": null
  },
  "hw_info": {
    "fw": "432AF9FB",
    "hw": "0010",
    "rev": 1,
    "ver": 0,
    "cbid": "FFFF"
  },
  "last_heard": "1969-12-31T22:00:00.000Z",
  "announce": {
    "flags": "NULL",
    "ts": 1497255223395
  },
  "node_type": "WIN",
  "uwb_trx_config": null,
  "periferial_info": null,
  "created_at": "2017-06-15T12:08:52.000Z",
  "updated_at": "2017-06-15T12:08:52.000Z",
  "uid": "e2h9CSLDR9mYesQ6rsd75Q",
  "current_system_timestamp": "2017-06-15T12:08:52.666Z",
  "status": null,
  "battery": {
    "mv": 4100,
    "pr": 100
  },
  "node_id": 43
}

Errors

Error Status Error Type Error Body Description
422 Unprocessable entity {"message":"Node mac_address '...' already exists"} A duplicate mac_address for the node was found.
422 Unprocessable entity "\"mac_address\" is not allowed to be empty","path":"mac_address","type":"any.empty","context":{"key":"mac_address"} The required field for mac_address was left empty.

Edit node

PUT nodes/{uid} Edit a node with a specified node UID. To retrieve a node UID, see get nodes.

Request Fields

You can enter any request field from the fields listed under this section's response fields. Please see the example request below for an example.

The request fields below are the default body of the edit nodes method.

Field Required/Optional Values Type Description
mac_address optional - string The MAC address of the node hardware. The MAC address can be found on a label on the hardware itself, or by using get nodes.
name optional - string The name of node.
node_type optional
  • WIN
  • TO
  • CP
string(22) The string identifier for node type:
  • WIN—a bridge or anchor
  • TO—a trackable
  • CP—undefined

Response Fields

Field Description
name The node name.
mac_address The MAC address of the node hardware.
parent_mac_address The MAC address of the parent node.
bridge_mac_address The MAC address of the bridge node.
sw_version The software version installed on the node.
sw_version.git The first 8 characters of the Git commit hash for the software version.
sw_version.sw_str The string name of the software version.
hw_info Hardware information about the node.
hw_info.fw The first 8 characters of the Git commit hash for the firmware.
hw_info.hw Bitmask hardware options, for example, accelerometer, ethernet, etc.
hw_info.rev The hardware revision. The field is announced deprecated. It will be available for 6 months minimum(until May 2022). Please, use hw_info.cbid instead.
hw_info.ver The hardware version. The field is announced deprecated. It will be available for 6 months minimum(until May 2022). Please, use hw_info.cbid instead.
hw_info.cbid The carrier board identifier.
last_heard The time stamp of the last time the node reported to the server, in UTC.
announce The announcement JSON object.
announce.flags Reserved field.
announce.ts The UTC time stamp of the time when the node was first detected by the server, in milliseconds.
announce.last_ts The UTC time stamp of the time when the node was last announced to the server, in milliseconds.
node_type The string identifier for node type:
  • WIN—a bridge or anchor
  • TO—a trackable
  • CP—undefined
uwb_trx_config The radio configuration (object with unknown inner fields).
periferial_info Reserved field.
created_at The time stamp of when the node was created, in UTC.
updated_at The time stamp of when the node was last updated, in UTC.
uid The node's unique identifier.
current_system_timestamp The UTC time stamp at the time of the request.
status The UTC time stamp at the time of the request.
status.sync Indicates if the node is synchronized:
  • true
  • false
status.tdoa Indicates if the schedule was received:
  • true
  • false
status.low_bat Indicates if the battery is low:
  • true
  • false
status.ext_pow Indicates if the external power is connected:
  • true
  • false
battery Parameters that describe the battery.
battery.mv The battery level, in millivolts.
battery.pr The battery level, in percentage.
node_id Unique ID of the SiteWise server.

Example Request

Using PUT api/nodes/Iv5KiHOtRz6l2NGM6W0EnA:

{
    "name": "c001a0a00004",
    "node_type": "TO",
}

Example Response

{
  "name": "c001a0a00004",
  "mac_address": "c001a0a00003",
  "parent_mac_address": "c001a0a00001",
  "bridge_mac_address": "c001a0a00001",
  "sw_version": {
    "sw_str": null
    "git": "432AF9FF",
  },
  "hw_info": {
    "ver": 0,
    "rev": 1,
    "hw": "0010",
    "fw": "432AF9FB",
    "cbid": "FFFF"
  },
  "last_heard": "1969-12-31T22:00:00.000Z",
  "announce": {
    "flags": null,
    "ts": 1497255223395
  },
  "node_type": "TO",
  "uwb_trx_config": null,
  "periferial_info": null,
  "created_at": "2017-06-19T12:09:45.000Z",
  "updated_at": "2017-06-19T12:22:09.000Z",
  "uid": "Iv5KiHOtRz6l2NGM6W0EnA",
  "current_system_timestamp": "2017-06-19T12:22:09.644Z",
  "status": null,
  "battery": {
    "mv": 4300,
    "pr": 200
  },
  "node_id": 44
}

Errors

Error Status Error Type Error Body Description
404 Not Found {"message":"Node '...' not found"} A node with the specified UID was not found.
422 Unprocessable entity {"message":"Node mac_address '...' already exists"} A duplicate mac_address for the node was found.

Delete node

Delete nodes/{uid} Deletes a node with a specified node UID. To retrieve a node UID, see get nodes.

A successful request returns a response status of 204.

Assign node to project

POST /api/nodes_associations/assign

Assigns a node to specified project.

Request Fields

Field Required/Optional Type Description
node required object Information about the node to be assigned to a project.
node.uid required string The unique identifier of the node to be assigned. To retrieve a node UID, see get nodes.
node.mac_address required string The MAC address of the node to be assigned. The MAC address can be found on a label on the hardware itself, or by using get nodes.
project required object The project to which the node is to be assigned.
project.uid required string The project's unique identifier. To retrieve a project UID, use GET api/projects described in Projects API.

Response Fields

Field Description
name The node name.
mac_address The MAC address of the node hardware.
parent_mac_address The MAC address of the parent node.
bridge_mac_address The MAC address of the bridge node.
sw_version The software version installed on the node.
sw_version.git The first 8 characters of the Git commit hash for the software version.
sw_version.sw_str The string name of the software version.
hw_info Hardware information about the node.
hw_info.fw The first 8 characters of the Git commit hash for the firmware.
hw_info.hw Bitmask hardware options, for example, accelerometer, ethernet, etc.
hw_info.rev The hardware revision. The field is announced deprecated. It will be available for 6 months minimum(until May 2022). Please, use hw_info.cbid instead.
hw_info.ver The hardware version. The field is announced deprecated. It will be available for 6 months minimum(until May 2022). Please, use hw_info.cbid instead.
hw_info.cbid The carrier board identifier.
last_heard The time stamp of the last time the node reported to the server, in UTC.
announce The announcement JSON object.
announce.flags Reserved field.
announce.ts The UTC time stamp of the time when the node was first detected by the server, in milliseconds.
announce.last_ts The UTC time stamp of the time when the node was last announced to the server, in milliseconds.
node_type The string identifier for node type:
  • WIN—a bridge or anchor
  • TO—a trackable
  • CP—undefined
uwb_trx_config The radio configuration (object with unknown inner fields).
periferial_info Reserved field.
created_at The time stamp of when the node was created, in UTC.
updated_at The time stamp of when the node was last updated, in UTC.
uid The node's unique identifier.
project_uid The unique identifier for the project.
company_uid The unique identifier for the company.
current_system_timestamp The UTC time stamp at the time of the request.
status The UTC time stamp at the time of the request.
status.sync Indicates if the node is synchronized:
  • true
  • false
status.tdoa Indicates if the schedule was received:
  • true
  • false
status.low_bat Indicates if the battery is low:
  • true
  • false
status.ext_pow Indicates if the external power is connected:
  • true
  • false
battery Parameters that describe the battery.
battery.mv The battery level, in millivolts.
battery.pr The battery level, in percentage.
node_id Unique ID of the SiteWise server.

Example Request

{
    "node": {
        "mac_address": "c001a0a00001",
        "uid": "gsgrf2CCRp2R2ugf-8kCIw"
    },
    "project": {
        "uid":"VMKRetiPRDKm0zUHDQ5x6g"
    }
}

Example Response

    {
        "name": "c001a0a000011",
        "mac_address": "c001a0a00001",
        "parent_mac_address": null,
        "bridge_mac_address": null,
        "sw_version": null,
        "hw_info": null,
        "last_heard": "1970-01-01T00:00:00.000Z",
        "announce": null,
        "node_type": "WIN",
        "uwb_trx_config": null,
        "periferial_info": null,
        "created_at": "2017-12-07T14:20:13.000Z",
        "updated_at": "2017-12-07T14:23:15.000Z",
        "uid": "gsgrf2CCRp2R2ugf-8kCIw",
        "project_uid": "VMKRetiPRDKm0zUHDQ5x6g",
        "company_uid": "yKOZ2aViT-efThvsIS_Gcw",
        "current_system_timestamp": "2017-12-07T17:06:02.178Z",
        "status": null,
        "battery": {
            "mv": 4100,
            "pr": 100
        },
        "node_id": 48
    }

Errors

Error Status Error Type Error Body Description
404 Not found error {"message":"Project is undefined"} The project or project_uid is not specified in the request.
404 Not found error {"message":"Node is undefined"} The node is not specified in the request.

Release node from project

POST /api/nodes_associations/release

Releases a node from specified project.

Request Fields

Field Required/Optional Type Description
node - object A JSON object including the node to be released from the project.
node.uid required string The unique identifier of the node to be released. To retrieve a node UID, see get nodes.
node.mac_address required string The MAC address of the node hardware. To retrieve the node MAC address, see get nodes.
project - object A JSON object including the project from which the node is to be released.
project.uid required string The project's unique identifier. To retrieve a project UID, use GET api/projects described in Projects API.

Response Fields

Field Description
name The node name.
mac_address The MAC address of the node hardware.
parent_mac_address The MAC address of the parent node.
bridge_mac_address The MAC address of the bridge node.
sw_version The software version installed on the node.
sw_version.git The first 8 characters of the Git commit hash for the software version.
sw_version.sw_str The string name of the software version.
hw_info Hardware information about the node.
hw_info.fw The first 8 characters of the Git commit hash for the firmware.
hw_info.hw Bitmask hardware options, for example, accelerometer, ethernet, etc.
hw_info.rev The hardware revision. The field is announced deprecated. It will be available for 6 months minimum(until May 2022). Please, use hw_info.cbid instead.
hw_info.ver The hardware version. The field is announced deprecated. It will be available for 6 months minimum(until May 2022). Please, use hw_info.cbid instead.
hw_info.cbid The carrier board identifier.
last_heard The time stamp of the last time the node reported to the server, in UTC.
announce The announcement JSON object.
announce.flags Reserved field.
announce.ts The UTC time stamp of the time when the node was first detected by the server, in milliseconds.
announce.last_ts The UTC time stamp of the time when the node was last announced to the server, in milliseconds.
node_type The string identifier for node type:
  • WIN—a bridge or anchor
  • TO—a trackable
  • CP—undefined
uwb_trx_config The radio configuration (object with unknown inner fields).
periferial_info Reserved field.
created_at The time stamp of when the node was created, in UTC.
updated_at The time stamp of when the node was last updated, in UTC.
uid The node's unique identifier.
project_uid The unique identifier for the project.
company_uid The unique identifier for the company.
current_system_timestamp The UTC time stamp at the time of the request.
status The UTC time stamp at the time of the request.
status.sync Indicates if the node is synchronized:
  • true
  • false
status.tdoa Indicates if the schedule was received:
  • true
  • false
status.low_bat Indicates if the battery is low:
  • true
  • false
status.ext_pow Indicates if the external power is connected:
  • true
  • false
battery Parameters that describe the battery.
battery.mv The battery level, in millivolts.
battery.pr The battery level, in percentage.
node_id Unique ID of the SiteWise server.

Example Request

{
    "node": {
        "mac_address": "c001a0a00001",
        "uid": "gsgrf2CCRp2R2ugf-8kCIw"
    },
    "project": {
        "uid":"VMKRetiPRDKm0zUHDQ5x6g"
    }
}

Example Response

    {
        "name": "c001a0a000011",
        "mac_address": "c001a0a00001",
        "parent_mac_address": null,
        "bridge_mac_address": null,
        "sw_version": null,
        "hw_info": null,
        "last_heard": "1970-01-01T00:00:00.000Z",
        "announce": null,
        "node_type": "WIN",
        "uwb_trx_config": null,
        "periferial_info": null,
        "created_at": "2017-12-07T14:20:13.000Z",
        "updated_at": "2017-12-07T14:23:15.000Z",
        "uid": "gsgrf2CCRp2R2ugf-8kCIw",
        "project_uid": null,
        "company_uid": "yKOZ2aViT-efThvsIS_Gcw",
        "current_system_timestamp": "2017-12-07T17:06:02.178Z",
        "status": null,
        "battery": {
            "mv": 4100,
            "pr": 100
        },
        "node_id": 98
    }

Errors

Error Status Error Type Error Body Description
404 Not found error {"message":"Project is undefined"} The project or project_uid is not specified in the request.
404 Not found error {"message":"Node is undefined"} The node is not specified in the request.

results matching ""

    No results matching ""