sublocation_uid: The unique identifier of the area to which the anchor belongs. Must be set either the sublocation_uid or the sl_uid fields. To retrieve an area UID, use GET api/sublocations described in Sublocations API.


WIN ANCHORS

Use the WIN anchors API to:

  • Get all anchors
  • Get a single anchor
  • Create a new anchor
  • Edit an existing anchor
  • Delete an anchor
  • Get all active associations
  • Get all active and inactive associations
  • Create an association
  • Edit an association
  • Delete an association

Note: The following terms have changed.

Current Term Former Term Definition
Area Sublocation A section of a site that has its own floorplan. For example, each floor of a multi-story building can be defined as an area.
Site Location A space that has RTLS coverage. For example, a building or a campus. A server might service one or more sites.

HTTP Headers

The HTTP headers used to access all RTLS APIs are listed below. Before submitting requests to the WIN Anchors 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 the 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

WIN Anchors Endpoints

Functionality Method Endpoint
get win anchors GET api/win_anchors
get single win anchor GET api/win_anchors/{uid}
create win anchors POST api/win_anchors
edit win anchors PUT api/win_anchors/{uid}
delete anchor DELETE api/win_anchors/{uid}
get active association GET api/win_anchor_associations
get all associations GET api/win_anchor_associations.json?all=true
create association POST api/win_anchor_associations
edit association PUT api/win_anchor_associations/{uid}
close association PUT api/win_anchor_associations/close
delete association DELETE api/win_anchor_associations/{uid}

Endpoints

Get win anchors

GET api/win_anchors

Get all anchors.

Response Fields

Field Description
win_anchors[].project_uid The unique identifier of the project.
win_anchors[].company_uid The unique identifier of the company.
win_anchors[].uid The unique identifier for the anchor.
win_anchors[].name The user-defined name of the anchor.
win_anchors[].sublocation_uid The unique identifier of the area.
win_anchors[].bt_config Reserved for future use.
win_anchors[].acc_config Reserved for future use.
win_anchors[].state Reserved for future use.
win_anchors[].created_at The UTC time stamp when the anchor was created.
win_anchors[].updated_at The UTC time stamp when the anchor was last updated.
win_anchors[].shm_status Reserved for future use.
win_anchors[].locked WIN can't change there position.
win_anchors[].position A JSON object about current position of anchor.
win_anchors[].position.x The x coordinate of the anchor in millimeters.
win_anchors[].position.y The y coordinate of the anchor in millimeters.
win_anchors[].position.z The z coordinate of the anchor in millimeters.
win_anchors[].position.sublocation_uid The unique identifier of the area in which the anchor resides.
win_anchors[].type The type of anchor:
  • ANCHOR—A stationary node at a fixed location.
  • BRIDGE—An anchor that includes a LAN interface that bridges the Redpoint UWB network and a local area network.
win_anchors[].node An object including the MAC address of the associated hardware device. If the anchor is not associated to hardware, the field lists null.
win_anchors[].node.responsive Missing several consecutive heartbeats means that trackable associated with the tag becomes not “responsive”, i.e. not present in the system anymore and not ready to function:
  • true
  • false
win_anchors[].node.mac_address The MAC address of the node associated to the win_anchor.
win_anchors[].node.cbid The carrier board identifier.

Example Response

{
  "win_anchors": [
    {
      "project_uid": "i7lONZPZTM6cI06btywj0Q",
      "company_uid": "9RbFAAOwSc2hPvKyqDrkEA",
      "uid": "-EG8atxrSDm-dv-nJzbw_w",
      "name": "Autocreated",
      "sublocation_uid": "XYOaxqd3SXKhv0H4f6IfqA",
      "bt_config": null,
      "acc_config": null,
      "state": null,
      "created_at": "2018-05-10T14:55:11.000Z",
      "updated_at": "2019-11-28T13:09:49.000Z",
      "shm_status": {
        "alarms": [
          "ANCHOR_MISSING"
        ]
      },
      "locked": false,
      "position": {
        "x": 7780,
        "y": 0,
        "z": 1627,
        "sublocation_uid": "XYOaxqd3SXKhv0H4f6IfqA",
        "sl_uid": "XYOaxqd3SXKhv0H4f6IfqA"
      },
      "type": "ANCHOR",
      "node": null
    },
    {
      "project_uid": "i7lONZPZTM6cI06btywj0Q",
      "company_uid": "9RbFAAOwSc2hPvKyqDrkEA",
      "uid": "0az6CrF_T1SS8OqYpxNiLg",
      "name": "DZ_Anch",
      "sublocation_uid": "GmmsFT8fT1OVkaZCTXU0TA",
      "bt_config": null,
      "acc_config": null,
      "state": null,
      "created_at": "2020-12-11T12:17:46.000Z",
      "updated_at": "2020-12-15T16:23:57.000Z",
      "shm_status": {
        "alarms": [
          "UNRESPONSIVE_NODE"
        ]
      },
      "locked": false,
      "position": {
        "x": 15800,
        "y": 4664,
        "z": 0,
        "sublocation_uid": "GmmsFT8fT1OVkaZCTXU0TA",
        "sl_uid": "GmmsFT8fT1OVkaZCTXU0TA"
      },
      "type": "ANCHOR",
      "node": {
        "mac_address": "e4956ea406e9",
        "responsive": false,
        "node_id": 3231,
        "fw": "5.10.15_rtls-radio",
        "hw": "7.1"
      }
    }
  ]
}

Get single win anchor

GET api/win_anchors/{uid}

Get a single anchor with a specified WIN anchor UID. To retrieve an anchor UID, see get win anchors.

Response Fields

Field Description
win_anchors[].project_uid The unique identifier of the project.
win_anchors[].company_uid The unique identifier of the company.
win_anchors[].uid The unique identifier for the anchor.
win_anchors[].name The user-defined name of the anchor.
win_anchors[].sublocation_uid The unique identifier of the area.
win_anchors[].bt_config Reserved for future use.
win_anchors[].acc_config Reserved for future use.
win_anchors[].state Reserved for future use.
win_anchors[].created_at The UTC time stamp when the anchor was created.
win_anchors[].updated_at The UTC time stamp when the anchor was last updated.
win_anchors[].shm_status Reserved for future use.
win_anchors[].locked WIN can't change there position.
win_anchors[].position A JSON object about current position of anchor.
win_anchors[].position.x The x coordinate of the anchor in millimeters.
win_anchors[].position.y The y coordinate of the anchor in millimeters.
win_anchors[].position.z The z coordinate of the anchor in millimeters.
win_anchors[].position.sublocation_uid The unique identifier of the area in which the anchor resides.
win_anchors[].type The type of anchor:
  • ANCHOR—A stationary node at a fixed location.
  • BRIDGE—An anchor that includes a LAN interface that bridges the Redpoint UWB network and a local area network.
win_anchors[].node An object including the MAC address of the associated hardware device. If the anchor is not associated to hardware, the field lists null.
win_anchors[].node.responsive Missing several consecutive heartbeats means that trackable associated with the tag becomes not “responsive”, i.e. not present in the system anymore and not ready to function:
  • true
  • false
win_anchors[].node.mac_address The MAC address of the node associated to the win_anchor.
win_anchors[].node.cbid The carrier board identifier.

Example Response

Using GET api/win_anchors/-EG8atxrSDm-dv-nJzbw_w.

{
  "win_anchors": [
    {
      "project_uid": "i7lONZPZTM6cI06btywj0Q",
      "company_uid": "9RbFAAOwSc2hPvKyqDrkEA",
      "uid": "-EG8atxrSDm-dv-nJzbw_w",
      "name": "Autocreated",
      "sublocation_uid": "XYOaxqd3SXKhv0H4f6IfqA",
      "bt_config": null,
      "acc_config": null,
      "state": null,
      "created_at": "2018-05-10T14:55:11.000Z",
      "updated_at": "2019-11-28T13:09:49.000Z",
      "shm_status": {
        "alarms": [
          "ANCHOR_MISSING"
        ]
      },
      "locked": false,
      "position": {
        "x": 7780,
        "y": 0,
        "z": 1627,
        "sublocation_uid": "XYOaxqd3SXKhv0H4f6IfqA",
        "sl_uid": "XYOaxqd3SXKhv0H4f6IfqA"
      },
      "type": "ANCHOR",
      "node": null
    }
  ]
}

Example Response

If the anchor with the specified UID is not found, the request returns an empty array.

{
  "win_anchors": []
}

Create win anchors

POST api/win_anchors

Create a new anchor.

Request Fields

Field Required Values Type Description
name required - string The user-defined name of the anchor.
position required - object A JSON object with information about the current position of the anchor.
position.x optional - number The x coordinate of the anchor in millimeters. If null is entered, anchor is positioned at 0.
position.y optional - number The y coordinate of the anchor in millimeters. If null is entered, anchor is positioned at 0.
position.z optional - number The z coordinate of the anchor in millimeters. If null is entered, anchor is positioned at 0.
position.sublocation_uid required - string
position.sl_uid required - string
type required
  • ANCHOR
  • BRIDGE
string The type of anchor.

Response Fields

Field Description
project_uid The unique identifier of the project.
company_uid The unique identifier of the company.
uid The unique identifier for the anchor.
name The user-defined name of the anchor.
sublocation_uid The unique identifier of the area.
bt_config Reserved for future use.
acc_config Reserved for future use.
state Reserved for future use.
created_at The UTC time stamp when the anchor was created.
updated_at The UTC time stamp when the anchor was last updated.
shm_status Reserved for future use.
locked WIN can't change there position.
position A JSON object about current position of anchor.
position.x The x coordinate of the anchor in millimeters.
position.y The y coordinate of the anchor in millimeters.
position.z The z coordinate of the anchor in millimeters.
position.sublocation_uid The unique identifier of the area in which the anchor resides.
type The type of anchor:
  • ANCHOR—A stationary node at a fixed location.
  • BRIDGE—An anchor that includes a LAN interface that bridges the Redpoint UWB network and a local area network.
node An object including the MAC address of the associated hardware device. If the anchor is not associated to hardware, the field lists null.
node.responsive Missing several consecutive heartbeats means that trackable associated with the tag becomes not “responsive”, i.e. not present in the system anymore and not ready to function:
  • true
  • false
node.mac_address The MAC address of the node associated to the win_anchor.
node.cbid The carrier board identifier.

Example Request

{
  "name": "Anchor 4",
  "position": {
    "x": 11020,
    "y": -2120,
    "z": 2500,
    "sublocation_uid": "Y3u0KIr5R9uAp30EOJvRwA",
    "sl_uid": "Y3u0KIr5R9uAp30EOJvRwA"
  },
  "type": "ANCHOR"
}

Example Response

{
  "project_uid": "xwacfMumRVejZlhnZhNrKw",
  "company_uid": "O1tByya0SNyHySedZpWIAg",
  "uid": "4gJBOeroQRmX7cvwp0f7mA",
  "name": "Autocreated",
  "sublocation_uid": "Y3u0KIr5R9uAp30EOJvRwA",
  "bt_config": null,
  "acc_config": null,
  "state": null,
  "created_at": "2017-07-17T08:18:44.000Z",
  "updated_at": "2017-07-17T08:18:44.000Z",
  "shm_status": null,
  "locked": false,
  "position": {
    "x": 11020,
    "y": -2120,
    "z": 2500,
    "sublocation_uid": "Y3u0KIr5R9uAp30EOJvRwA"
  },
  "type": "ANCHOR",
  "node": null
}

Example Response

Create an anchor with no configuration and position at (0,0).

{
  "project_uid": "xwacfMumRVejZlhnZhNrKw",
  "company_uid": "O1tByya0SNyHySedZpWIAg",
  "uid": "4t249OGWSMev73OqfyxSEQ",
  "name": "Anchor",
  "sublocation_uid": "Y3u0KIr5R9uAp30EOJvRwA",
  "bt_config": null,
  "acc_config": null,
  "state": null,
  "created_at": "2017-07-17T08:39:00.000Z",
  "updated_at": "2017-07-17T08:39:00.000Z",
  "shm_status": null,
  "locked": false,
  "position": {
    "x": null,
    "y": null,
    "z": null,
    "sublocation_uid": null
  },
  "type": "ANCHOR",
  "node": null
}

Errors

Error Status Error Type Error Body Description
422 Unprocessable Entity {"status":422,"details":[{"message":"\"name\" is not allowed to be empty","path":"name","type":"any.empty","context":{"key":"name"}}],"message":"child \"name\" fails because [\"name\" is not allowed to be empty]","name":"ValidationError"} A required field was left empty.
404 Not Found {"status":404,"message":"Sublocation "..." not found."} Sublocation not found.

Edit win anchors

PUT api/win_anchors/{uid}

Edit an anchor with a specified WIN anchor UID. To retrieve a WIN anchor UID, see get win anchors.

Request Fields

The following fields can be edited using a PUT api/win_anchors/{uid} request:

Field Required Values Type Description
name optional - string The user-defined name of the anchor.
position optional - - A JSON object about the current position of the anchor.
position.x optional - number The x coordinate of the anchor in millimeters. If null is entered, anchor is positioned at 0.
position.y optional - number The y coordinate of the anchor in millimeters. If null is entered, anchor is positioned at 0.
position.z optional - number The z coordinate of the anchor in millimeters. If null is entered, anchor is positioned at 0.
position.sublocation_uid optional - string
position.sl_uid optional - string
type optional
  • ANCHOR
  • BRIDGE
string The type of anchor. Entering a string other than "ANCHOR" or "BRIDGE" returns a response with null.

Response Fields

Field Description
project_uid The unique identifier of the project.
company_uid The unique identifier of the company.
uid The unique identifier for the anchor.
name The user-defined name of the anchor.
sublocation_uid The unique identifier of the area.
bt_config Reserved for future use.
acc_config Reserved for future use.
state Reserved for future use.
created_at The UTC time stamp when the anchor was created.
updated_at The UTC time stamp when the anchor was last updated.
shm_status Reserved for future use.
locked WIN can't change there position.
position A JSON object about current position of anchor.
position.x The x coordinate of the anchor in millimeters.
position.y The y coordinate of the anchor in millimeters.
position.z The z coordinate of the anchor in millimeters.
position.sublocation_uid The unique identifier of the area in which the anchor resides.
type The type of anchor:
  • ANCHOR—A stationary node at a fixed location.
  • BRIDGE—An anchor that includes a LAN interface that bridges the Redpoint UWB network and a local area network.
node An object including the MAC address of the associated hardware device. If the anchor is not associated to hardware, the field lists null.
node.responsive Missing several consecutive heartbeats means that trackable associated with the tag becomes not “responsive”, i.e. not present in the system anymore and not ready to function:
  • true
  • false
node.mac_address The MAC address of the node associated to the win_anchor.
node.cbid The carrier board identifier.

Example Request

{
  "name": "Anchor",
  "position": {
    "x": 500,
    "y": 700,
    "z": null,
    "sublocation_uid": "MJl9Dup3SC2WrpdQRMLoHw"
  },
  "type": "ANCHOR"
}

Example Response

{
  "project_uid": "xwacfMumRVejZlhnZhNrKw",
  "company_uid": "O1tByya0SNyHySedZpWIAg",
  "uid": "4t249OGWSMev73OqfyxSEQ",
  "name": "Anchor",
  "sublocation_uid": "Y3u0KIr5R9uAp30EOJvRwA",
  "bt_config": null,
  "acc_config": null,
  "state": null,
  "created_at": "2017-07-17T08:39:00.000Z",
  "updated_at": "2017-07-17T09:15:47.000Z",
  "shm_status": null,
  "locked": false,
  "position": {
    "x": 500,
    "y": 700,
    "z": null,
    "sublocation_uid": "MJl9Dup3SC2WrpdQRMLoHw"
  },
  "type": "ANCHOR",
  "node": null
}

Errors

Error Status Error Type Error Body Description
404 Not Found {"status":404,"message":"Win Anchor \"{win_uid}\" not found","name":"NotFoundError"} The WIN anchor UID was not found.
422 Unprocessable Entity {"status":422,"details":[{"message":"\"name\" is not allowed to be empty","path":"name","type":"any.empty","context":{"key":"name"}}],"message":"child \"name\" fails because [\"name\" is not allowed to be empty]","name":"ValidationError"} The required field for the anchor name was left empty.
422 Unprocessable Entity {"status":422,"details":[{"message":"\"type\" is not allowed to be empty","path":"type","type":"any.empty","context":{"key":"type"}}],"message":"child \"type\" fails because [\"type\" is not allowed to be empty]","name":"ValidationError"} The required field for the anchor type was left empty.

Delete anchor

DELETE api/anchors/{uid}

Delete an anchor with a specified anchor UID. To retrieve an anchor UID, see get WIN anchors.

When the WIN anchor is deleted, a notification is sent on ZMQ. The request returns a status 204 in all cases.

Errors

Error Status Error Type Error Body Description
500 Internal Server Error {"status":500,"message":"Internal Server Error"} The UID is not in the correct, 22-character format.

Association between anchors and nodes

Get associations

Get all anchor-node associations, including past associations that have been closed.

Response Fields

Field Description
win_anchor_associations An array of all WIN anchor associations.
win_anchor_associations.mac_address The MAC address of the associated node.
win_anchor_associations.win_uid The unique identifier of the associated WIN anchor.
win_anchor_associations.uid The unique identifier of the association.
win_anchor_associations.closed_at The UTC time stamp of the time the association was closed.
win_anchor_associations.opened_at The UTC time stamp of the time the association was created.
win_anchor_associations.status Reserved field.

Example response

{
  "win_anchor_associations": [
    {
      "mac_address": "sa8lsufuld9c",
      "win_uid": "BkTZhl8B6NPsetfTkPEAcA",
      "uid": "7cVCwdx7fTykf9DiDWSDEH",
      "closed_at": "2018-03-14T20:45:29.000Z",
      "opened_at": "2018-03-12T20:31:05.000Z",
      "status": null
    },
    {
      "mac_address": "hkdoj2pk6fni",
      "win_uid": "kTQwHaYATemAS7I7QhIvxZ",
      "uid": "c2SfNXYyfxaSrF1dKlceaE",
      "closed_at": "9999-12-31T23:59:59.000Z",
      "opened_at": "2017-06-08T15:09:44.000Z",
      "status": null
    }
  ]
}

Get active associations

GET api/win_anchor_associations

Get only the current associations, without any past associations that have been closed.

Response Fields

Field Description
mac_address The MAC address of the anchor.
win_uid The unique identifier of the WIN anchor.
uid The unique identifier of the association.
closed_at The UTC time stamp when the association was closed.
opened_at The UTC time stamp when the association was opened.
status Reserved field.

Example Response

{
  "win_anchor_associations": [
    {
      "mac_address": "xgyk7fhfu5sb",
      "win_uid": "ZtJTTBJCTemtbAmIirglSO",
      "uid": "eCeSqt62P7fzVkPzKCipma",
      "closed_at": "2018-03-14T20:45:29.000Z",
      "opened_at": "2018-03-12T20:31:05.000Z",
      "status": null
    }
  ]
}

Get all associations

GET api/win_anchor_associations?all=true

Get all active and inactive associations.

Response Fields

Field Description
mac_address The MAC address of the anchor.
win_uid The unique identifier of the WIN anchor.
uid The unique identifier of the association.
closed_at The UTC time stamp when the association was closed.
opened_at The UTC time stamp when the association was opened.
status Reserved field.

Example Response

{
  "win_anchor_associations": [
    {
      "mac_address": "xgyk7fhfu5sb",
      "win_uid": "ZtJTTBJCTemtbAmIirglSO",
      "uid": "eCeSqt62P7fzVkPzKCipma",
      "closed_at": "2018-03-14T20:45:29.000Z",
      "opened_at": "2018-03-12T20:31:05.000Z",
      "status": null
    }
  ]
}

Create association

POST api/win_anchor_associations

Create an association for an anchor or bridge.

Request Fields

Field Required Type Description
mac_address required string The MAC address of the node. It can have the type FIXED or BRIDGE. The MAC address can be found on a label on the hardware itself, or by using GET api/nodes described in Nodes API.
win_uid required string The unique identifier of the WIN anchor. To retrieve an anchor UID, see get WIN anchors.
uid optional string The unique identifier of the same node with the specified MAC address. To retrieve a node UID, use GET api/nodes described in Nodes API.

Response Fields

Field Description
mac_address The MAC address of the associated node.
win_uid The unique identifier of the associated win anchor.
uid The unique identifier of the association.
closed_at The UTC time stamp when the association was closed.
opened_at The UTC time stamp when the association was opened.
status Reserved field.

Example Request

{
  "mac_address": "e4956ea12345",
  "win_uid": "QoMDd86TG57qRIC3wL9V5y",
  "uid": "KcAeXIyQT0WK171Wo15hXQ"
}

Example Response

{
  "mac_address": "e4956ea12345",
  "win_uid": "QoMDd86TG57qRIC3wL9V5y",
  "uid": "6L6qwOduTeS5-G2KfOI80Q",
  "closed_at": "9999-12-31T23:59:59.000Z",
  "opened_at": "2018-05-04T16:07:15.000Z",
  "status": null
}

Errors

Error Status Error Type Error Body Description
404 Not Found {"message":"Node '...' not found"} The node UID was not found.
422 Unprocessable entity {"message":"Exist not closed record for mac_address '...'"} An anchor association with this MAC address already exists.
422 Unprocessable entity {"message":"Exist not closed record for win_uid '...'"} An anchor association with this WIN anchor UID already exists.
422 Unprocessable entity {"message":"Item not present in tables nodes or win_anchors"} A WIN anchor with this win_uid, or a node with this mac_address does not exist.

Edit association

PUT api/win_anchor_associations/{uid}

Edit an anchor association with a specified anchor association UID. To retrieve an anchor association UID, see get all associations.

You can change the hardware device that a WIN anchor is assigned to by entering a different MAC address in the request. You can change the WIN anchor that a hardware device is assigned to by entering a different WIN anchor UID in the request. The association UID remains the same despite changes.

Request Fields

Field Required Type Description
mac_address required string The MAC address of the node. It can have the type FIXED or BRIDGE. The MAC address can be found on a label on the hardware itself, or by using GET api/nodes described in Nodes API.
win_uid required string The unique identifier of the WIN anchor. To retrieve a WIN anchor UID, see get WIN anchors.
uid optional string The unique identifier of the anchor association. If you use a different association UID than the one in the URL, it is ignored.

Response Fields

Field Description
mac_address The MAC address of the associated node.
win_uid The unique identifier of the associated WIN anchor.
uid The unique identifier of the association.
closed_at The UTC time stamp when the association was closed.
opened_at The UTC time stamp when the association was opened.
status Reserved field.

Example Request

Using PUT api/win_anchor_associations/6L6qwOduTeS5-G2KfOI80Q:

{
  "mac_address": "8ocdn6wk7f9p",
  "win_uid": "dsZReYvgTrq9K-AINSYOUA",
  "uid": ""
}

Example Response

{
  "mac_address": "8ocdn6wk7f9p",
  "win_uid": "dsZReYvgTrq9K-AINSYOUA",
  "uid": "6L6qwOduTeS5-G2KfOI80Q",
  "closed_at": "9999-12-31T23:59:59.000Z",
  "opened_at": "2018-05-04T16:07:15.000Z",
  "status": null
}

Errors

Error Status Error Type Error Body Description
404 Not Found {"message":"Win anchor association ... not found."} Anchor association not found
404 Not Found {"message":"Node with mac address ... not found."} Node with mac address not found.
404 Not Found {"message":"Anchor with ... not found"} Anchor with uid not found.

Close association

PUT api/win_anchor_associations/close

Close an association by win_uid or mac_address. A successful request returns a status 200.

Request Fields

Field Required Type Description
win_uid optional string The unique identifier of the WIN anchor. To retrieve a WIN anchor UID, see get WIN anchors.
mac_address optional string The MAC address of the node. The MAC address can be found on a label on the hardware itself, or by using GET api/nodes described in Nodes API.

Response Fields

Field Description
mac_address The MAC address of associated node.
win_uid The unique identifier of the associated win anchor.
uid The unique identifier of the association.
closed_at The UTC time stamp when the association was closed.
opened_at The UTC time stamp when the association was opened.
status The status of the anchor. If unavailable, lists null.

Example Request

{
  "win_uid": "4t249OGWSMev73OqfyxSEQ"
}

Example Response

{
  "mac_address": "test2",
  "win_uid": "4t249OGWSMev73OqfyxSEQ",
  "uid": "crRksOtFTsWn0DyJIqhSBw",
  "closed_at": "2017-07-17T10:59:40.000Z",
  "opened_at": "2017-07-17T10:22:58.000Z",
  "status": null
}

Errors

Error Status Error Type Error Body Description
404 Not Found {"message":"Node '...' not found"} The UID for the node cannot be found.
422 Unprocessable entity {"message":"No mac or trackable object uid specified."} No MAC address or object UID was specified.
422 Unprocessable entity {"message":"No opened association with '...'"} The application cannot close the association, because there is no open association with the MAC address or the WIN anchor.

Delete association

DELETE api/win_anchor_associations/{uid}

Deletes an anchor association with a specified anchor association UID. To retrieve a WIN anchor association UID, see get all associations. All responses return the status 204.

results matching ""

    No results matching ""