API responses - Xweather Protect, Xweather Optimize, Xweather Observe

Vaisala Xweather Protect, Xweather Optimize, and Xweather Observe List of Devices in Subscription API Reference

Product status
Document code
M213270EN
Revision
B
ft:locale
en-US
Product
Xweather Protect, Xweather Optimize, Xweather Observe
Document type
Technical description

The API returns the following responses.

API responses
Response Description
200 OK
400 Bad request.
401 Unauthorized. An API key was not provided.
403 Forbidden. The API key is not valid.
404 The service could not be reached.
500 Internal server error.

Schema for response 200

Example

The example shows a single device in the response. In real responses, all the devices of a subscription are returned.
[
  {
    "id": "urn:dev:ops:16961-DMU801-S1940040",
    "serialNumber": "S1940040",
    "name": "S1940040",
    "productCode": "DMU801",
    "location": {
      "latitude": 22,
      "longitude": 63,
      "altitude": 2
    },
    "sensors": [
      {
        "id": "urn:dev:ops:16961-WXT536-S4131015",
        "serialNumber": "S4131015",
        "name": "WXT_1",
        "productCode": "WXT536"
      }
    ]
  }
]