Sensors & Physical Sensors

Add to parent device: POST /sensors/{id}/device

This method adds a sensor to a device. If the device does not exists then it will be created. Either a device_id or type and uuid combination is needed. The type of the sensor will then be automatically be set to 1.

URLhttps://api.sense-os.nl/sensors/{id}/device
MethodPOST
Need AuthTrue

Request Headers

NameDefaultTypeStyleRequired
Accept*xsd:stringheaderTrue

Request Parameters

NameDescriptionType

Request Body

{
    "device": {
        "id": "1",
        "type": "smartphone",
        "uuid": "50c7eaed792b01234"
    }
}

Read parent device: GET /sensors/{id}/device

This method returns the details of the device to witch the sensor is connected.

URLhttps://api.sense-os.nl/sensors/{id}/device
MethodGET
Need AuthTrue

Request Headers

NameDefaultTypeStyleRequired
Accept*xsd:stringheaderTrue

Request Parameters

NameDescriptionType

Remove from device: DELETE /sensors/{id}/device/{device_id}

This method will remove a sensor from a device. The type of the device will then automatically be set to 0.

URLhttps://api.sense-os.nl/sensors/{id}/device/{device_id}
MethodDELETE
Need AuthTrue

Request Headers

NameDefaultTypeStyleRequired
Accept*xsd:stringheaderTrue

Request Parameters

NameDescriptionType