Get all location - location type - device associations
get
/connectedWorker/clientapi/v2/projects/{projectId}/locations/{locationId}/typeDevices
This operation retrieves all location - location type - device association for specific location.
Request
Path Parameters
-
locationId: integer(int64)
Location identifier
-
projectId: integer(int64)
Project identifier
Response
Supported Media Types
- application/json
200 Response
Location - location type - device associations were successfully retrieved
Nested Schema : LocationSensorDevice
Type:
Show Source
object-
deviceId:
string
Id of the device that provides the sensor data. Device must support device model and attribute defined for location type and sensor attributeExample:
21E15228-0C54-47E6-AC7F-41A0A8F8D10E -
links(optional):
array links
-
locationId:
integer(int64)
The unique id of the location in the projectExample:
52 -
locationType:
string
Minimum Length:
0Maximum Length:255Pattern:^\w+$Name of the location type. Accepted are alphanumeric characters and underscore, max length is 255 charactersExample:firstFloor -
projectId:
integer(int64)
The unique id of the projectExample:
51 -
sensorAttribute:
string
Minimum Length:
0Maximum Length:255Pattern:^\w+$Name of the sensor attribute. Accepted are alphanumeric characters and underscore, max length is 255 charactersExample:windowTemperature
Nested Schema : Link
Type:
Show Source
object-
href:
string
The target resource's URI
-
rel:
string
Relation type