List
GET {{baseUrl}}/account/:accountID/product
List all products and shared products
■ Pulls back products belonging to account, plus products shared with account
(receiver sharing)
■ Each location node should contain the account ID that it belongs to
■ Since alarm criteria are defined at the product level, include array of alarm
criteria definitions associated with each product
Request Params
Key | Datatype | Required | Description |
---|---|---|---|
id | string | ||
configuration | string | Filter by enabled or disabled (optional) | |
hide_share | string | Filter shared products (optional) |
HEADERS
Key | Datatype | Required | Description |
---|---|---|---|
Authorization | string | (Required) |
RESPONSES
status: OK
[{"product_id":"157cdb9000bc8afefedf0746","configuration":false,"name":"New Product","notes":"","mkt":{"type":"solid","emulation":"10"},"test_range":{"start":0,"end":0,"unit":"hours"},"alarm_criteria":{"temperature":{"max":0,"min":0,"minutes_above_high":0,"minutes_below_low":0,"max_enabled":false,"min_enabled":false},"temperature_2":{"max":0,"min":0,"minutes_above_high":0,"minutes_below_low":0,"max_enabled":false,"min_enabled":false},"humidity":{"max":0,"min":0,"max_enabled":false,"min_enabled":false},"mkt":{"min":0,"max":0,"max_enabled":false,"min_enabled":false},"light":{"max":0,"max_enabled":false},"shock":{"max":0,"max_enabled":false}}}]