Acknowledge for Alarm, depending on what action is passed. Note : if there is an AlarmId passed that is opposite of the action chosen, it will not be changed.
id required | integer Example: 12 Alarm id |
action required | string Example: ACK Action to be taken. Must be one of [ACK, UNACK]. |
X-Tenant-Id required | string Example: public Tenant name id |
Content-Type required | string Example: application/json Content type produced |
Accept required | string Example: application/hal+json Content type accepted |
OK
Bulk acknowledge for Alarm, depending on what action is passed. Note : if there is an AlarmId passed that is opposite of the action chosen, it will not be changed.
X-Tenant-Id required | string Example: public Tenant name id |
Content-Type required | string Example: application/json Content type produced |
Accept required | string Example: application/hal+json Content type accepted |
action required | string Alarm action, accepted values [ACK, UNACK] |
alarmsIds required | Array of integers <int32> List of alarm ids |
OK
{- "action": "UNACK",
- "alarmsIds": [
- 5,
- 20,
- 10
]
}
Load alarm using the given alarm id Puts on response hypermedia links and templates with the actions related to the alarm and link to the alarm’s device.
id required | integer Example: 12 Alarm id to search for. |
X-Tenant-Id required | string Example: public Tenant name id |
Content-Type required | string Example: application/json Content type produced |
Accept required | string Example: application/hal+json Content type accepted |
OK
{- "description": "qzXfN",
- "id": 12,
- "alarm_type": "LOW_BATTERY",
- "confirmed": "2020-05-06T12:17:31+00:00",
- "confirmed_by": "TestUser",
- "device_number": "123456",
- "device_type": "SMARTVALVE",
- "device_name": "Hydro-Konekt 2.0",
- "start_time": "2020-05-06T12:17:31+00:00",
- "acknowledged": true,
- "alarm_data": {
- "voltage": 23
}, - "_links": {
- "acknowledge_alarm": {
- "title": "Link to acknowledge alarm",
- "type": "POST",
- "templated": true
}, - "alarms": {
- "title": "Link to get all alarms",
- "type": "GET"
}, - "device": {
- "title": "Link to get alarm's Device",
- "type": "GET"
}
}
}
Load all alarms using pagination Puts on response hypermedia links and templates with the actions related to the alarm and link to the alarm’s device.
X-Tenant-Id required | string Example: public Tenant name id |
Content-Type required | string Example: application/json Content type produced |
Accept required | string Example: application/hal+json Content type accepted |
OK
{- "_embedded": {
- "alarms": [
- {
- "description": "RESET device alarm",
- "id": 51,
- "alarm_type": "RESET",
- "end_time": "2020-03-18T00:25:22+00:00",
- "device_number": "74338240",
- "device_type": "SIGFOX_WMBUS_FORWARDER",
- "device_name": "CMAS Forwarder Test Device",
- "start_time": "2020-03-18T00:25:22+00:00",
- "acknowledged": false,
- "alarm_data": {
- "counter": 22,
- "register": "0010"
}, - "_links": {
- "self": {
- "title": "Link to resource",
- "type": "GET"
}, - "acknowledge_alarm": {
- "title": "Link to acknowledge alarm",
- "type": "POST",
- "templated": true
}, - "alarms": {
- "title": "Link to get all alarms",
- "type": "GET"
}, - "device": {
- "title": "Link to get alarm's Device",
- "type": "GET"
}
}
}, - {
- "description": "BURST logical alarm",
- "id": 22,
- "alarm_type": "BURST",
- "confirmed": "2019-12-02T17:58:03+00:00",
- "confirmed_by": "root",
- "end_time": "2018-06-18T16:03:55+00:00",
- "device_number": "77599548",
- "device_type": "SMARTVALVE",
- "device_name": "CMAS Test Device",
- "start_time": "2018-06-18T15:03:53+00:00",
- "acknowledged": true,
- "alarm_data": { },
- "_links": {
- "self": {
- "title": "Link to resource",
- "type": "GET"
}, - "acknowledge_alarm": {
- "title": "Link to acknowledge alarm",
- "type": "POST",
- "templated": true
}, - "alarms": {
- "title": "Link to get all alarms",
- "type": "GET"
}, - "device": {
- "title": "Link to get alarm's Device",
- "type": "GET"
}
}
}, - {
- "description": "DRY logical alarm",
- "id": 48,
- "alarm_type": "DRY",
- "device_number": "1840156194",
- "device_type": "SMARTVALVE",
- "device_name": "Sample DN20 SV",
- "start_time": "2019-10-10T10:35:29+00:00",
- "acknowledged": false,
- "alarm_data": { },
- "_links": {
- "self": {
- "title": "Link to resource",
- "type": "GET"
}, - "acknowledge_alarm": {
- "title": "Link to acknowledge alarm",
- "type": "POST",
- "templated": true
}, - "alarms": {
- "title": "Link to get all alarms",
- "type": "GET"
}, - "device": {
- "title": "Link to get alarm's Device",
- "type": "GET"
}
}
}, - {
- "description": "RESET device alarm",
- "id": 49,
- "alarm_type": "RESET",
- "confirmed": "2019-12-02T17:17:01+00:00",
- "confirmed_by": "root",
- "end_time": "2019-10-26T15:19:29+00:00",
- "device_number": "74338240",
- "device_type": "SIGFOX_WMBUS_FORWARDER",
- "device_name": "CMAS Forwarder Test Device",
- "start_time": "2019-10-26T15:19:29+00:00",
- "acknowledged": true,
- "alarm_data": {
- "counter": 21,
- "register": "0010"
}, - "_links": {
- "self": {
- "title": "Link to resource",
- "type": "GET"
}, - "acknowledge_alarm": {
- "title": "Link to acknowledge alarm",
- "type": "POST",
- "templated": true
}, - "alarms": {
- "title": "Link to get all alarms",
- "type": "GET"
}, - "device": {
- "title": "Link to get alarm's Device",
- "type": "GET"
}
}
}, - {
- "description": "DRY logical alarm",
- "id": 27,
- "alarm_type": "DRY",
- "confirmed": "2019-12-02T14:03:51+00:00",
- "confirmed_by": "root",
- "end_time": "2018-09-19T13:21:01+00:00",
- "device_number": "57502930",
- "device_type": "KAMSTRUP_SIGFOX",
- "device_name": "CMAS Kamstrup Sigfox Test Device",
- "start_time": "2018-09-14T07:29:30+00:00",
- "acknowledged": true,
- "alarm_data": { },
- "_links": {
- "self": {
- "title": "Link to resource",
- "type": "GET"
}, - "acknowledge_alarm": {
- "title": "Link to acknowledge alarm",
- "type": "POST",
- "templated": true
}, - "alarms": {
- "title": "Link to get all alarms",
- "type": "GET"
}, - "device": {
- "title": "Link to get alarm's Device",
- "type": "GET"
}
}
}
]
}, - "_links": {
}, - "page": {
- "size": 5,
- "totalElements": 50,
- "totalPages": 10,
- "number": 0
}
}
Creates a new webHook.
X-Tenant-Id required | string Example: public Tenant name id |
Content-Type required | string Example: application/json Content type produced |
Accept required | string Example: application/hal+json Content type accepted |
password required | string |
messageConfig required | object (MessageConfig) |
domain required | string |
name required | string |
type required | string Must be one of [DAILY, ALARM, OPERATION_REPORTED, OPERATION_CREATED, OPERATION_REJECTED, HOURLY, GPS_LOCATION, PRESSURE_LOWSPEED, PRESSURE_HIGHSPEED, PRESSURE_SENSOR_V2, MIN_FLOW]. |
url required | string |
username required | string |
tags required | Array of strings |
OK
{- "password": "password",
- "messageConfig": {
- "blocked_triggers": [
- "ALERT",
- "BUTTON"
]
}, - "domain": "domain",
- "name": "name",
- "type": "ALARM",
- "url": "url",
- "username": "username",
- "tags": [
- "Tag 1"
]
}
{- "id": 123,
- "type": "ALARM",
- "name": "name",
- "url": "url",
- "domain": "domain",
- "enabled": false,
- "tags": [
- "Tag 1"
], - "username": "Webhook Username",
- "message_config": {
- "blocked_triggers": [
- "ALERT",
- "BUTTON"
]
}, - "_links": {
- "update": {
- "title": "Link to update the WebHook",
- "type": "PATCH"
}, - "delete": {
- "title": "Link to delete the WebHook",
- "type": "DELETE"
}, - "enable": {
- "title": "Link to enable the WebHook",
- "type": "POST"
}, - "webhooks": {
- "title": "Link to get all Webhooks",
- "type": "GET"
}
}
}
Lists webHooks for the user per given page, filter and ordering. Creates hypermedia links and templates on response.
enabled required | boolean Example: enabled=true filter by enabled status |
X-Tenant-Id required | string Example: public Tenant name id |
Content-Type required | string Example: application/json Content type produced |
Accept required | string Example: application/hal+json Content type accepted |
OK
{- "_embedded": {
- "webhooks": [
- {
- "id": 123,
- "type": "DAILY",
- "name": "Webhook Name",
- "domain": "Webhook Domain",
- "enabled": true,
- "tags": [
- "Tag 1"
], - "username": "Webhook Username",
- "message_config": {
- "blocked_triggers": [
- "ALERT",
- "BUTTON"
]
}, - "_links": {
- "update": {
- "title": "Link to update the WebHook",
- "type": "PATCH"
}, - "delete": {
- "title": "Link to delete the WebHook",
- "type": "DELETE"
}, - "disable": {
- "title": "Link to disable the WebHook",
- "type": "POST"
}, - "webhooks": {
- "title": "Link to get all Webhooks",
- "type": "GET"
}
}
}
]
}, - "page": {
- "size": 10,
- "totalElements": 1,
- "totalPages": 1,
- "number": 0
}
}
Deletes a webHook by the given id.
id required | integer Example: 123 WebHook id to delete. |
X-Tenant-Id required | string Example: public Tenant name id |
Content-Type required | string Example: application/json Content type produced |
Accept required | string Example: application/hal+json Content type accepted |
No Content
Load a webHook using the given id.
id required | integer Example: 123 WebHook to search for. |
X-Tenant-Id required | string Example: public Tenant name id |
Content-Type required | string Example: application/json Content type produced |
Accept required | string Example: application/hal+json Content type accepted |
OK
{- "id": 123,
- "type": "DAILY",
- "name": "Webhook Name",
- "domain": "Webhook Domain",
- "enabled": true,
- "tags": [
- "Tag 1"
], - "username": "Webhook Username",
- "message_config": {
- "blocked_triggers": [
- "ALERT",
- "BUTTON"
]
}, - "_links": {
- "update": {
- "title": "Link to update the WebHook",
- "type": "PATCH"
}, - "delete": {
- "title": "Link to delete the WebHook",
- "type": "DELETE"
}, - "disable": {
- "title": "Link to disable the WebHook",
- "type": "POST"
}, - "webhooks": {
- "title": "Link to get all Webhooks",
- "type": "GET"
}
}
}
Update a webHook identified by the parameter id with the given WebHook resource.
id required | integer Example: 123 WebHook id to update. |
X-Tenant-Id required | string Example: public Tenant name id |
Content-Type required | string Example: application/json Content type produced |
Accept required | string Example: application/hal+json Content type accepted |
password required | string |
message_config required | object (MessageConfig) |
domain required | string |
name required | string |
type required | string Must be one of [DAILY, ALARM, OPERATION_REPORTED, OPERATION_CREATED, OPERATION_REJECTED, HOURLY, GPS_LOCATION, PRESSURE_LOWSPEED, PRESSURE_HIGHSPEED, PRESSURE_SENSOR_V2, MIN_FLOW]. |
url required | string |
username required | string |
tags required | Array of strings |
OK
{- "password": "password",
- "message_config": {
- "blocked_triggers": [
- "ALERT"
]
}, - "domain": "domain",
- "name": "name",
- "type": "ALARM",
- "username": "username",
- "tags": [
- "Tag 1"
]
}
{- "id": 123,
- "type": "ALARM",
- "name": "name",
- "domain": "domain",
- "enabled": true,
- "tags": [
- "Tag 1"
], - "username": "username",
- "message_config": {
- "blocked_triggers": [
- "ALERT"
]
}, - "_links": {
- "update": {
- "title": "Link to update the WebHook",
- "type": "PATCH"
}, - "delete": {
- "title": "Link to delete the WebHook",
- "type": "DELETE"
}, - "disable": {
- "title": "Link to disable the WebHook",
- "type": "POST"
}, - "webhooks": {
- "title": "Link to get all Webhooks",
- "type": "GET"
}
}
}
Enables a webHook by the given id if it is disabled, otherwise disable it if enabled.
id required | integer Example: 123 WebHook id to enable/disable. |
X-Tenant-Id required | string Example: public Tenant name id |
Content-Type required | string Example: application/json Content type produced |
Accept required | string Example: application/hal+json Content type accepted |
OK
{- "id": 123,
- "type": "DAILY",
- "name": "Webhook Name",
- "domain": "Webhook Domain",
- "enabled": true,
- "tags": [
- "Tag 1"
], - "username": "Webhook Username",
- "message_config": {
- "blocked_triggers": [
- "ALERT",
- "BUTTON"
]
}, - "_links": {
- "update": {
- "title": "Link to update the WebHook",
- "type": "PATCH"
}, - "delete": {
- "title": "Link to delete the WebHook",
- "type": "DELETE"
}, - "disable": {
- "title": "Link to disable the WebHook",
- "type": "POST"
}, - "webhooks": {
- "title": "Link to get all Webhooks",
- "type": "GET"
}
}
}
Load a webHook using the given id.
id required | integer Example: 10 WebHook id to get logs |
X-Tenant-Id required | string Example: public Tenant name id |
Content-Type required | string Example: application/json Content type produced |
Accept required | string Example: application/hal+json Content type accepted |
OK
{- "_embedded": {
- "webhook_logs": [
- {
- "id": 310581714305100,
- "url": "Tr5BSKy_0B",
- "timestamp": "2020-05-06T12:18:54+00:00",
- "webhook_id": 10,
- "response_status": "IBjAjmMCiy",
- "response_code": 2085588451,
- "triggered_by": 310581713566500,
- "response_error_message": "0L3c1lW4zb",
- "_links": {
- "webhook": {
- "title": "Link to get WebHook",
- "type": "GET"
}
}
}
]
}, - "page": {
- "size": 10,
- "totalElements": 1,
- "totalPages": 1,
- "number": 0
}
}
Load a daily data using the given id. Creates hypermedia links and templates on response.
id required | integer Example: 123 Daily data to search for. |
X-Tenant-Id required | string Example: public Tenant name id |
Content-Type required | string Example: application/json Content type produced |
Accept required | string Example: application/hal+json Content type accepted |
OK
{- "id": 123,
- "timestamp": "2020-05-06T12:17:44+00:00",
- "date": "2020-05-06",
- "created_at": "2020-05-06T12:17:44+00:00",
- "dispersed_value": 4,
- "estimation": false,
- "estimation_disp": false,
- "accumulated_value": 6,
- "device_data": {
- "@type": "valveData"
}, - "device_number": "123456",
- "device_type": "SMARTVALVE",
- "sigfox_data": {
- "avg_signal": 13,
- "rssi": -135,
- "signal": 13.29,
- "station": "10D5"
}, - "wm_bus_data": {
- "counter": 1,
- "failed": false,
- "rssi": -10
}, - "advanced_sigfox_data": {
- "lqi": "AVERAGE",
- "computed_location": {
- "radius": 500,
- "latitude": 51.0119,
- "longitude": 4.32888
}
}, - "_links": {
- "self": {
- "title": "Link to resource",
- "type": "GET"
}, - "device": {
- "title": "Link to get daily's Device",
- "type": "GET"
}, - "dailyData": {
- "title": "Link to get all daily data",
- "type": "GET"
}
}
}
Lists daily data for the user per given page, filter and ordering. Creates hypermedia links and templates on response.
dispersed_value__gt required | integer <int32> Example: dispersed_value__gt=1 Filter by dispersed value |
X-Tenant-Id required | string Example: public Tenant name id |
Content-Type required | string Example: application/json Content type produced |
Accept required | string Example: application/hal+json Content type accepted |
OK
{- "_embedded": {
- "dailies": [
- {
- "id": 123,
- "timestamp": "2020-05-06T12:17:44+00:00",
- "date": "2020-05-06",
- "created_at": "2020-05-06T12:17:44+00:00",
- "dispersed_value": 4,
- "estimation": false,
- "estimation_disp": false,
- "accumulated_value": 6,
- "device_data": {
- "@type": "valveData"
}, - "device_number": "123456",
- "device_type": "SMARTVALVE",
- "sigfox_data": {
- "avg_signal": 13,
- "rssi": -135,
- "signal": 13.29,
- "station": "10D5"
}, - "wm_bus_data": {
- "counter": 1,
- "failed": false,
- "rssi": -10
}, - "advanced_sigfox_data": {
- "lqi": "AVERAGE",
- "computed_location": {
- "radius": 500,
- "latitude": 51.0119,
- "longitude": 4.32888
}
}, - "_links": {
- "self": {
- "title": "Link to resource",
- "type": "GET"
}, - "device": {
- "title": "Link to get daily's Device",
- "type": "GET"
}, - "dailyData": {
- "title": "Link to get all daily data",
- "type": "GET"
}
}
}
]
}, - "page": {
- "size": 10,
- "totalElements": 1,
- "totalPages": 1,
- "number": 0
}
}
Gets an aggregate of Daily by AggregateFilter.
filter required | string Example: MONTHLY AggregateFilter to do the aggregation. Must be one of [HOURLY, DAILY, WEEKLY, MONTHLY, YEARLY, DAY]. |
dispersed_value__gt required | integer <int32> Example: dispersed_value__gt=1 Filter by dispersed value |
X-Tenant-Id required | string Example: public Tenant name id |
Content-Type required | string Example: application/json Content type produced |
Accept required | string Example: application/hal+json Content type accepted |
OK
{- "_embedded": {
- "dailies": [
- {
- "date": "2020-05-06",
- "dispersed_value": 10,
- "accumulated_value": 36,
- "device_data": {
- "min_ambient_temperature": 20,
- "max_flow": 17.4
}
}
]
}, - "page": {
- "size": 10,
- "totalElements": 1,
- "totalPages": 1,
- "number": 0
}
}
Count Percentage Of Successfully Daily
deviceId required | string Example: 123124 Id of the device |
X-Tenant-Id required | string Example: public Tenant name id |
Content-Type required | string Example: application/json Content type produced |
Accept required | string Example: application/hal+json Content type accepted |
OK
{- "percentage_value": 93,
- "kpi_type": "GOOD",
- "update_at": "2020-05-06T12:17:50+00:00"
}
Load device using the given device number. Creates hypermedia links and templates on response showing the actions that the response device can do.
number required | string Example: 123124 Device number to search for. |
X-Tenant-Id required | string Example: public Tenant name id |
Content-Type required | string Example: application/json Content type produced |
Accept required | string Example: application/hal+json Content type accepted |
OK
{- "index": 1000,
- "settings": {
- "sigfox_id": "1165",
- "number": "1165",
- "name": "Device 1165",
- "type": "SMARTVALVE"
}, - "counters": {
- "uplinks": 2,
- "downlinks": 2,
- "operations": 2,
- "resets": 2
}, - "tags": [ ],
- "data": {
- "min_flow_outofdate": false,
- "@type": "valveData"
}, - "state": {
- "@type": "valveState",
- "position": "CLOSED"
}, - "timezone": "Europe/Brussels",
- "status": {
- "support": true,
- "open_alarms": true,
- "open_operations": true
}, - "last_operation_report": "2020-05-06T12:17:50+00:00",
- "last_message_report": "2020-05-06T12:17:50+00:00",
- "gdpr_state": {
- "optin": true,
- "updated_at": "2020-05-06T12:17:50.287Z",
- "updated_by": "hydrosense",
- "reference": "reference",
- "timestamp": "2020-05-06T13:17:50.287",
- "completed": true
}, - "last_gps_location": {
- "date": "2020-05-06",
- "eventTime": "2020-05-06T12:17:50+00:00",
- "gpsSatellites": 2,
- "gpsHdop": 2,
- "gpsAltitude": 2,
- "accX": 2,
- "accY": 2,
- "accZ": 2,
- "latitude": 50.85045,
- "longitude": 4.34878,
- "valid": true
}, - "last_sigfox_gps": {
- "radius": 2,
- "latitude": 50.85045,
- "longitude": 4.34878
}, - "daily_kpi": {
- "percentage_value": 80,
- "kpi_type": "GOOD",
- "update_at": "2020-05-06T12:17:50+00:00"
}, - "switch_network": false,
- "_links": {
- "reset": {
- "title": "The links to reset a device",
- "type": "POST"
}, - "report": {
- "title": "The links to createSmartvalveDeviceType an operation for the device",
- "type": "POST"
}, - "throttle": {
- "title": "throttle",
- "type": "POST"
}, - "devices": {
- "title": "The link to get all the devices",
- "type": "GET"
}, - "update": {
- "title": "The link to update the device",
- "type": "PATCH"
}, - "gdpr": [
- {
- "title": "Optout Device",
- "type": "POST"
}, - {
- "title": "Fetch device gdpr state",
- "type": "GET"
}
]
}
}
Updates the device using a patch.
number required | string Example: 123124 Device number to patch. |
X-Tenant-Id required | string Example: public Tenant name id |
Content-Type required | string Example: application/json Content type produced |
Accept required | string Example: application/hal+json Content type accepted |
timezone required | string The new timezone of the device. |
name required | string New name to be updated in provision device. |
reportInterval required | string Report interval to be updated. Must be one of [HOURLY, DAILY, HIGH_FREQUENCY]. |
settings required | object (Settings) |
OK
{- "timezone": "Europe/London",
- "name": "new name",
- "reportInterval": null,
- "settings": {
- "diameter": "1DE",
- "length": 45
}
}
{- "index": 1000,
- "settings": {
- "sigfox_id": "3120",
- "number": "3120",
- "name": "new name",
- "type": "SMARTVALVE",
- "report_interval": "DAILY",
- "diameter": "1DE",
- "length": 45
}, - "counters": {
- "uplinks": 2,
- "downlinks": 2,
- "operations": 2,
- "resets": 2
}, - "tags": [ ],
- "data": {
- "min_flow_outofdate": false,
- "@type": "valveData"
}, - "state": {
- "@type": "valveState",
- "position": "CLOSED"
}, - "timezone": "Europe/London",
- "status": {
- "support": true
}, - "last_operation_report": "2020-05-06T12:17:49+00:00",
- "last_message_report": "2020-05-06T12:17:49+00:00",
- "gdpr_state": {
- "optin": true,
- "updated_at": "2020-05-06T12:17:49.786Z",
- "updated_by": "hydrosense",
- "reference": "reference",
- "timestamp": "2020-05-06T13:17:49.786",
- "completed": true
}, - "last_gps_location": {
- "date": "2020-05-06",
- "eventTime": "2020-05-06T12:17:49+00:00",
- "gpsSatellites": 2,
- "gpsHdop": 2,
- "gpsAltitude": 2,
- "accX": 2,
- "accY": 2,
- "accZ": 2,
- "latitude": 50.85045,
- "longitude": 4.34878,
- "valid": true
}, - "last_sigfox_gps": {
- "radius": 2,
- "latitude": 50.85045,
- "longitude": 4.34878
}, - "daily_kpi": {
- "percentage_value": 80,
- "kpi_type": "GOOD",
- "update_at": "2020-05-06T12:17:49+00:00"
}, - "switch_network": false,
- "_links": {
- "reset": {
- "title": "The links to reset a device",
- "type": "POST"
}, - "report": {
- "title": "The links to createSmartvalveDeviceType an operation for the device",
- "type": "POST"
}, - "throttle": {
- "title": "throttle",
- "type": "POST"
}, - "devices": {
- "title": "The link to get all the devices",
- "type": "GET"
}, - "update": {
- "title": "The link to update the device",
- "type": "PATCH"
}, - "gdpr": [
- {
- "title": "Optout Device",
- "type": "POST"
}, - {
- "title": "Fetch device gdpr state",
- "type": "GET"
}
]
}
}
Loads all devices for the user per given page , filter and ordering. Creates hypermedia links and templates on response showing the actions that each device can do.
settings.number required | integer <int32> Example: settings.number=123456 Filter by settings number |
X-Tenant-Id required | string Example: public Tenant name id |
Content-Type required | string Example: application/json Content type produced |
Accept required | string Example: application/hal+json Content type accepted |
OK
{- "_embedded": {
- "devices": [
- {
- "index": 1000,
- "settings": {
- "sigfox_id": "2891",
- "number": "2891",
- "name": "Device 2891",
- "type": "SMARTVALVE"
}, - "counters": {
- "uplinks": 2,
- "downlinks": 2,
- "operations": 2,
- "resets": 2
}, - "tags": [ ],
- "data": {
- "min_flow_outofdate": false,
- "@type": "valveData"
}, - "state": {
- "@type": "valveState",
- "position": "CLOSED"
}, - "timezone": "Europe/Brussels",
- "status": {
- "support": true,
- "open_alarms": true,
- "open_operations": true
}, - "last_operation_report": "2020-05-06T12:17:51+00:00",
- "last_message_report": "2020-05-06T12:17:51+00:00",
- "gdpr_state": {
- "optin": true,
- "updated_at": "2020-05-06T12:17:51.365Z",
- "updated_by": "hydrosense",
- "reference": "reference",
- "timestamp": "2020-05-06T13:17:51.365",
- "completed": true
}, - "last_gps_location": {
- "date": "2020-05-06",
- "eventTime": "2020-05-06T12:17:51+00:00",
- "gpsSatellites": 2,
- "gpsHdop": 2,
- "gpsAltitude": 2,
- "accX": 2,
- "accY": 2,
- "accZ": 2,
- "latitude": 50.85045,
- "longitude": 4.34878,
- "valid": true
}, - "last_sigfox_gps": {
- "radius": 2,
- "latitude": 50.85045,
- "longitude": 4.34878
}, - "daily_kpi": {
- "percentage_value": 80,
- "kpi_type": "GOOD",
- "update_at": "2020-05-06T12:17:51+00:00"
}, - "switch_network": false,
- "_links": {
- "reset": {
- "title": "The links to reset a device",
- "type": "POST"
}, - "report": {
- "title": "The links to createSmartvalveDeviceType an operation for the device",
- "type": "POST"
}, - "throttle": {
- "title": "throttle",
- "type": "POST"
}, - "devices": {
- "title": "The link to get all the devices",
- "type": "GET"
}, - "update": {
- "title": "The link to update the device",
- "type": "PATCH"
}, - "gdpr": [
- {
- "title": "Optout Device",
- "type": "POST"
}, - {
- "title": "Fetch device gdpr state",
- "type": "GET"
}
]
}
}
]
}, - "page": {
- "size": 5,
- "totalElements": 1,
- "totalPages": 1,
- "number": 0
}
}
Creates a report operation for the device.
number required | string Example: 123124 Device number to report. |
X-Tenant-Id required | string Example: public Tenant name id |
Content-Type required | string Example: application/json Content type produced |
Accept required | string Example: application/hal+json Content type accepted |
apply_immediately required | boolean If operation should be applied on next downlink. |
apply_at required | string Datetime when operation should be applied. |
OK
{- "apply_immediately": false,
- "apply_at": "2020-04-29T14:57:17+00:00"
}
{- "id": 1,
- "state": "SYNCHRONIZED",
- "finished": false,
- "device_number": "4529",
- "device_name": "Device 4529",
- "device_type": "SMARTVALVE",
- "operation_type": "REPORT",
- "requested_state": {
- "@type": "valveState",
- "position": "CLOSED"
}, - "apply_immediately": true,
- "apply_at": "2020-05-06T12:17:49+00:00",
- "_links": {
- "cancel": {
- "title": "Cancels the operation if not finish",
- "type": "POST"
}, - "operations": {
- "title": "Link to get all Operations",
- "type": "GET"
}, - "device": {
- "title": "Link to get operation's Device",
- "type": "GET"
}
}
}
Creates a hardware reset for a device
number required | string Example: 123124 Device number to patch. |
X-Tenant-Id required | string Example: public Tenant name id |
Content-Type required | string Example: application/json Content type produced |
Accept required | string Example: application/hal+json Content type accepted |
apply_immediately required | boolean If operation should be applied on next downlink. |
apply_at required | string Datetime when operation should be applied. |
OK
{- "apply_immediately": false,
- "apply_at": "2020-04-29T14:57:19+00:00"
}
{- "id": 1,
- "state": "SYNCHRONIZED",
- "finished": false,
- "device_number": "4819",
- "device_name": "Device 4819",
- "device_type": "SMARTVALVE",
- "operation_type": "REPORT",
- "requested_state": {
- "@type": "valveState",
- "position": "CLOSED"
}, - "apply_immediately": true,
- "apply_at": "2020-05-06T12:17:51+00:00",
- "_links": {
- "cancel": {
- "title": "Cancels the operation if not finish",
- "type": "POST"
}, - "operations": {
- "title": "Link to get all Operations",
- "type": "GET"
}, - "device": {
- "title": "Link to get operation's Device",
- "type": "GET"
}
}
}
Search devices based on Number / DeviceId / Name.
q required | string Example: q=1B1 Text to be search. |
selected required | integer <int32> Example: selected=12345679 Device number selected not to be searched. |
X-Tenant-Id required | string Example: public Tenant name id |
Content-Type required | string Example: application/json Content type produced |
Accept required | string Example: application/hal+json Content type accepted |
OK
No Content
[- {
- "sigfox_id": "1B1B1",
- "number": "12345678",
- "name": "Cmas Demo Device",
- "type": "SMARTVALVE"
}, - {
- "sigfox_id": "1B1B3",
- "number": "12345679",
- "name": "Cmas Demo Device 2",
- "type": "SMARTVALVE"
}
]
Creates a state change operation for the device.
number required | string Example: 123124 Target device number. |
operation required | string Example: open Update state operation. |
X-Tenant-Id required | string Example: public Tenant name id |
Content-Type required | string Example: application/json Content type produced |
Accept required | string Example: application/hal+json Content type accepted |
requested_state required | object (RequestedState) |
apply_immediately required | boolean If operation should be applied on next downlink. |
apply_at required | string Datetime when operation should be applied. |
OK
{- "requested_state": {
- "max_flow": 20
}, - "apply_immediately": false,
- "apply_at": "2020-04-30T14:57:19+00:00"
}
{- "id": 1,
- "state": "SYNCHRONIZED",
- "finished": false,
- "device_number": "4856",
- "device_name": "Device 4856",
- "device_type": "SMARTVALVE",
- "operation_type": "STATE_CHANGE",
- "requested_state": {
- "@type": "valveState",
- "position": "CLOSED"
}, - "apply_immediately": true,
- "apply_at": "2020-05-06T12:17:50+00:00",
- "_links": {
- "cancel": {
- "title": "Cancels the operation if not finish",
- "type": "POST"
}, - "operations": {
- "title": "Link to get all Operations",
- "type": "GET"
}, - "device": {
- "title": "Link to get operation's Device",
- "type": "GET"
}
}
}
When a device is marked as optin the personal data will decoded and stored in Hydrosense™ Platform. Tenant can provide an external reference for the customer’s consent and a timestamp of the given consent. This method can return the following code ACCEPTED: If request succeed NOT_FOUND: If the device does not exists or does not belongs to the tenant CONFLICT: If an optout job is active
number required | string Example: 1245215 Device number. |
Content-Type required | string Example: application/json Content type produced |
Accept required | string Example: application/hal+json Content type accepted |
Accepted
No content
{- "optin": true,
- "updated_at": "2020-05-06T12:17:55.897Z",
- "updated_by": "john",
- "reference": "dfc7c481-0c50-4f75-9853-afc761ada2de",
- "timestamp": "2020-05-06T08:17:55.897",
- "completed": true
}
When a device is marked as optin the personal data will decoded and stored in Hydrosense™ Platform. Tenant can provide an external reference for the customer’s consent and a timestamp of the given consent. When a device is optout a job is created to remove the customer Personal Data. This is and async process and the operation it’s considered completed only when job completes successfully This method can return the following code ACCEPTED: If request succeed NOT_FOUND: If the device does not exists or does not belongs to the tenant CONFLICT: If the device it’s not fully open or an operation is active and syncronized with the device
number required | string Example: 1245215 Device number. |
Content-Type required | string Example: application/json Content type produced |
Accept required | string Example: application/hal+json Content type accepted |
Accepted
No content
{- "optin": false,
- "updated_at": "2020-05-06T12:17:56.179Z",
- "updated_by": "john",
- "reference": "3e207ef5-44ca-4fab-8f91-3535866040ca",
- "timestamp": "2020-05-06T11:17:56.179",
- "completed": false
}
Lists GPS location data for the user per given page, filter and ordering. Creates hypermedia links and templates on response.
X-Tenant-Id required | string Example: public Tenant name id |
Content-Type required | string Example: application/json Content type produced |
Accept required | string Example: application/hal+json Content type accepted |
OK
{- "_embedded": {
- "gpsLocation": [
- {
- "id": 1,
- "date": "2020-05-06",
- "latitude": 50.85045,
- "longitude": 4.34878,
- "valid": true,
- "event_time": "2020-05-06T12:18:01+00:00",
- "device_number": "1602",
- "gps_satellites": 2,
- "gps_hdop": 2,
- "gps_altitude": 2,
- "acc_x": 1,
- "acc_y": 1,
- "acc_z": 1,
- "gps_sigfox": {
- "radius": 2,
- "latitude": 50.85045,
- "longitude": 4.34878
}
}
]
}, - "page": {
- "size": 10,
- "totalElements": 1,
- "totalPages": 1,
- "number": 0
}
}
Lists GPS Sigfox data for the user per given page, filter and ordering. Creates hypermedia links and templates on response.
X-Tenant-Id required | string Example: public Tenant name id |
Content-Type required | string Example: application/json Content type produced |
Accept required | string Example: application/hal+json Content type accepted |
OK
{- "_embedded": {
- "gpsSigfox": [
- {
- "id": 1,
- "date": "2020-05-06",
- "latitude": 50.85045,
- "longitude": 4.34878,
- "radius": 2,
- "event_time": "2020-05-06T12:18:06+00:00",
- "device_number": "1192"
}
]
}, - "page": {
- "size": 10,
- "totalElements": 1,
- "totalPages": 1,
- "number": 0
}
}
Export HFUsage data as CSV.
X-Tenant-Id required | string Example: public Tenant name id |
Content-Type required | string Example: application/json Content type produced |
Accept required | string Example: application/hal+json Content type accepted |
OK
"device_number=12345×tamp__gte=2017-01-01T02%3A02%3A02Z×tamp__lte=2018-01-01T02%3A02%3A02Z"
Gets an aggregate of BatteryIndex by AggregateFilter.
filter required | string Example: MONTHLY Must be one of [HOURLY, DAILY, WEEKLY, MONTHLY, YEARLY, DAY]. |
X-Tenant-Id required | string Example: public Tenant name id |
Content-Type required | string Example: application/json Content type produced |
Accept required | string Example: application/hal+json Content type accepted |
OK
{- "_embedded": {
- "batteries": [
- {
- "timestamp": "2020-05-06T13:17:38+00:00",
- "voltage": 123.4
}
]
}, - "page": {
- "size": 10,
- "totalElements": 1,
- "totalPages": 1,
- "number": 0
}
}
Load Battery Index using the given identifier. Creates hypermedia links and templates on response.
id required | string Example: 5 BatteryIndex to search for. |
X-Tenant-Id required | string Example: public Tenant name id |
Content-Type required | string Example: application/json Content type produced |
Accept required | string Example: application/hal+json Content type accepted |
OK
{- "id": 5,
- "timestamp": "2020-05-06T12:17:38+00:00",
- "voltage": 123.4,
- "firmware": "firmware",
- "device_number": "123456",
- "device_type": "SMARTVALVE",
- "_links": {
- "device": {
- "title": "Link to get battery's Device",
- "type": "GET"
}, - "batteries": {
- "title": "Link to load all batteries",
- "type": "GET"
}
}
}
Loads all battery index using filter and ordering. Creates hypermedia links and templates on response showing the actions that each device can do.
X-Tenant-Id required | string Example: public Tenant name id |
Content-Type required | string Example: application/json Content type produced |
Accept required | string Example: application/hal+json Content type accepted |
OK
{- "_embedded": {
- "batteries": [
- {
- "id": 5,
- "timestamp": "2020-05-06T12:17:39+00:00",
- "voltage": 123.4,
- "firmware": "firmware",
- "device_number": "123456",
- "device_type": "SMARTVALVE",
- "_links": {
- "device": {
- "title": "Link to get battery's Device",
- "type": "GET"
}, - "batteries": {
- "title": "Link to load all batteries",
- "type": "GET"
}
}
}
]
}, - "page": {
- "size": 5,
- "totalElements": 1,
- "totalPages": 1,
- "number": 0
}
}
Tries to cancel the operation if this is not finish.
X-Tenant-Id required | string Example: public Tenant name id |
Content-Type required | string Example: application/json Content type produced |
Accept required | string Example: application/hal+json Content type accepted |
OK
{- "id": 1,
- "state": "SYNCHRONIZED",
- "finished": false,
- "device_number": "1051",
- "device_name": "Device 1051",
- "device_type": "SMARTVALVE",
- "operation_type": "STATE_CHANGE",
- "requested_state": {
- "@type": "valveState",
- "position": "CLOSED"
}, - "apply_immediately": true,
- "apply_at": "2020-05-06T12:18:22+00:00",
- "_links": {
- "cancel": {
- "title": "Cancels the operation if not finish",
- "type": "POST"
}, - "operations": {
- "title": "Link to get all Operations",
- "type": "GET"
}, - "device": {
- "title": "Link to get operation's Device",
- "type": "GET"
}
}
}
Lists operations for the user per given page, filter and ordering. Creates hypermedia links and templates on response.
X-Tenant-Id required | string Example: public Tenant name id |
Content-Type required | string Example: application/json Content type produced |
Accept required | string Example: application/hal+json Content type accepted |
OK
{- "_embedded": {
- "operations": [
- {
- "id": 1,
- "state": "SCHEDULED",
- "finished": false,
- "device_number": "123456",
- "device_name": "Hydro-Konekt 2.0",
- "device_type": "SMARTVALVE",
- "operation_type": "STATE_CHANGE",
- "requested_state": {
- "@type": "valveState",
- "max_flow": 432439997,
- "position": "UNKNOWN"
}, - "apply_immediately": false,
- "apply_at": "2020-05-06T12:18:22+00:00",
- "created_date": "2020-05-06T12:18:22+00:00",
- "created_by": "hydrosense",
- "_links": {
- "cancel": {
- "title": "Cancels the operation if not finish",
- "type": "POST"
}, - "operations": {
- "title": "Link to get all Operations",
- "type": "GET"
}, - "device": {
- "title": "Link to get operation's Device",
- "type": "GET"
}
}
}
]
}, - "page": {
- "size": 10,
- "totalElements": 1,
- "totalPages": 1,
- "number": 0
}
}
Load operation using the given identifier. Creates hypermedia links and templates on response showing the actions that the response operation can do.
id required | string Example: 1 id of the operation. |
X-Tenant-Id required | string Example: public Tenant name id |
Content-Type required | string Example: application/json Content type produced |
Accept required | string Example: application/hal+json Content type accepted |
OK
{- "id": 1,
- "state": "SCHEDULED",
- "finished": false,
- "device_number": "123456",
- "device_name": "Hydro-Konekt 2.0",
- "device_type": "SMARTVALVE",
- "operation_type": "STATE_CHANGE",
- "requested_state": {
- "@type": "valveState",
- "max_flow": 568165489,
- "position": "OPENED"
}, - "apply_immediately": false,
- "apply_at": "2020-05-06T12:18:22+00:00",
- "created_date": "2020-05-06T12:18:22+00:00",
- "created_by": "hydrosense",
- "_links": {
- "cancel": {
- "title": "Cancels the operation if not finish",
- "type": "POST"
}, - "operations": {
- "title": "Link to get all Operations",
- "type": "GET"
}, - "device": {
- "title": "Link to get operation's Device",
- "type": "GET"
}
}
}
List all Pressure Sensor data for the user per given page, filter and ordering. Creates hypermedia links and templates on response.
X-Tenant-Id required | string Example: public Tenant name id |
Content-Type required | string Example: application/json Content type produced |
Accept required | string Example: application/hal+json Content type accepted |
OK
{- "_embedded": {
- "pressureSensor": [
- {
- "id": 1,
- "date": "2020-05-06",
- "event_time": "2020-05-06T12:18:27+00:00",
- "device_number": "3787",
- "type": "PRESSURE_LOWSPEED",
- "pressure_sensor_data": {
- "readings": [
- {
- "readingTime": "2020-05-06T12:18:27.499Z",
- "adcValue": "77",
- "decimalReading": 119,
- "pressure": 3.56
}
], - "@type": "pressureLowSpeedData",
- "packet_time": "2020-05-06T13:18:27.499+01:00"
}
}
]
}, - "page": {
- "size": 10,
- "totalElements": 1,
- "totalPages": 1,
- "number": 0
}
}
Download report for given id. A report can be downloaded in next five days after it's been completed.
id required | string Example: 1 Report identifier |
X-Tenant-Id required | string Example: public Tenant name id |
Content-Type required | string Example: application/json Content type produced |
Accept required | string Example: application/hal+json Content type accepted |
OK
Loads all of the Reports
status required | string Example: status=COMPLETED Filter by report status |
X-Tenant-Id required | string Example: public Tenant name id |
Content-Type required | string Example: application/json Content type produced |
Accept required | string Example: application/hal+json Content type accepted |
OK
{- "_embedded": {
- "reportResourceList": [
- {
- "id": 1,
- "upload_at": "2020-04-29T14:58:34+00:00",
- "uploaded_by": "test",
- "status": "PROCESSING",
- "name": "Report_1.csv",
- "filename": "TestUpload.csv",
- "_links": {
- "reports": {
- "title": "Link to get all of the Reports",
- "type": "GET"
}
}
}, - {
- "id": 1,
- "upload_at": "2020-04-29T14:58:34+00:00",
- "completed_at": "2020-04-29T14:58:34+00:00",
- "uploaded_by": "test",
- "requested": 15,
- "processed": 15,
- "status": "COMPLETED",
- "name": "Report_1.csv",
- "filename": "TestUpload.csv",
- "_links": {
- "download": {
- "title": "Link to download the Report",
- "type": "GET"
}, - "reports": {
- "title": "Link to get all of the Reports",
- "type": "GET"
}
}
}, - {
- "id": 1,
- "upload_at": "2020-04-29T14:58:34+00:00",
- "uploaded_by": "test",
- "status": "PROCESSING",
- "name": "Report_1.csv",
- "filename": "TestUpload.csv",
- "_links": {
- "reports": {
- "title": "Link to get all of the Reports",
- "type": "GET"
}
}
}
]
}, - "page": {
- "size": 10,
- "totalElements": 3,
- "totalPages": 1,
- "number": 0
}
}
Creates a new report request for given file.
Content-Type required | string Example: application/json Content type produced |
file required | string File with device ids |
Accepted
Assign list of Tags to one device.
deviceNumber required | string Example: 123ABC Device number |
X-Tenant-Id required | string Example: public Tenant name id |
Content-Type required | string Example: application/json Content type produced |
Accept required | string Example: application/hal+json Content type accepted |
OK
[- "Tag 1"
]
Assign only one device to a list of Tag.
X-Tenant-Id required | string Example: public Tenant name id |
Content-Type required | string Example: application/json Content type produced |
Accept required | string Example: application/hal+json Content type accepted |
devices required | Array of strings Set of Sigfox numbers. |
tags required | Array of strings Set of tags name. |
OK
{- "devices": [
- "123ABC"
], - "tags": [
- "Tag 1"
]
}
Creates a new Tag.
X-Tenant-Id required | string Example: public Tenant name id |
Content-Type required | string Example: application/json Content type produced |
Accept required | string Example: application/hal+json Content type accepted |
name required | string Tag name. |
Created
{- "name": "Tag 1"
}
{- "name": "Tag 1",
- "created_date": "2020-05-06T12:18:38+00:00",
- "created_by": "cmas",
}
Load all existing Tags.
X-Tenant-Id required | string Example: public Tenant name id |
Content-Type required | string Example: application/json Content type produced |
Accept required | string Example: application/hal+json Content type accepted |
OK
{- "_embedded": {
- "tags": [
- {
- "name": "Tag 1",
- "created_date": "2020-05-06T12:18:38+00:00",
- "created_by": "cmas",
}
]
}, - "page": {
- "size": 10,
- "totalElements": 1,
- "totalPages": 1,
- "number": 0
}
}
Delete an existing Tag by id.
name required | string Example: Tag%201 Tag name. |
X-Tenant-Id required | string Example: public Tenant name id |
Content-Type required | string Example: application/json Content type produced |
Accept required | string Example: application/hal+json Content type accepted |
No Content
Load tag by id
name required | string Example: Tag%201 Tag name. |
X-Tenant-Id required | string Example: public Tenant name id |
Content-Type required | string Example: application/json Content type produced |
Accept required | string Example: application/hal+json Content type accepted |
OK
{- "name": "Tag 1",
- "created_date": "2020-05-06T12:18:37+00:00",
- "created_by": "cmas",
}
Loads from provision the tenant environments that the given tenantCode exists in.
tenantCode required | string Example: Tag%201 Tag name. |
X-Tenant-Id required | string Example: public Tenant name id |
Content-Type required | string Example: application/json Content type produced |
Accept required | string Example: application/hal+json Content type accepted |
OK
No Content
[- {
- "code": "dev"
}
]
Load a Tenant using the given tenant code Puts on response hypermedia links and templates with the actions related to the tenant.
tenantCode required | string Example: Tag%201 Tag name. |
X-Tenant-Id required | string Example: public Tenant name id |
Content-Type required | string Example: application/json Content type produced |
Accept required | string Example: application/hal+json Content type accepted |
OK
{- "tenant_code": "f6wOplp_P0",
- "tenant_name": "hvjrAobAdv",
- "sub_domain": "AeS1sbF3MW",
- "permissions": [
- {
- "type": "ACCESS_HOURLY_VALUES",
- "mode": "STRICT",
- "types": [
- "KAMSTRUP_SIGFOX",
- "SIGFOX_WMBUS_FORWARDER",
- "PRESSURE_LOWSPEED",
- "PRESSURE_HIGHSPEED",
- "SMARTVALVE_2"
], - "strictMode": true
}
], - "_links": {
}
}
Loads all Tenants for the environment. Puts on response hypermedia links and templates with the actions related to Tenant.
X-Tenant-Id required | string Example: public Tenant name id |
Content-Type required | string Example: application/json Content type produced |
Accept required | string Example: application/hal+json Content type accepted |
OK
{- "_embedded": {
- "tenants": [
- {
- "tenant_code": "bbL3vhCdKq",
- "tenant_name": "TsHmnPfebN",
- "sub_domain": "eDrh7VYom1",
- "permissions": [
- {
- "type": "ACCESS_HOURLY_VALUES",
- "mode": "STRICT",
- "types": [
- "SMARTVALVE_NB",
- "SIGFOX_WMBUS_FORWARDER",
- "SMARTVALVE",
- "SMART_STANDPIPE",
- "PRESSURE_HIGHSPEED"
], - "strictMode": true
}
], - "_links": {
}
}
]
}, - "page": {
- "size": 10,
- "totalElements": 1,
- "totalPages": 1,
- "number": 0
}
}
Load Tenant using the sub domain. The sub domain depends the given domain resolver.
X-Tenant-Id required | string Example: public Tenant name id |
Content-Type required | string Example: application/json Content type produced |
Accept required | string Example: application/hal+json Content type accepted |
OK
Create an user on IAM.
realmId required | string Example: master Realm identifier |
Content-Type required | string Example: application/json Content type produced |
Accept required | string Example: application/hal+json Content type accepted |
firstName required | string |
lastName required | string |
email required | string |
username required | string |
Created
{- "firstName": "Hydroko",
- "lastName": "Admin",
- "email": "hydroko@cmas-systems.com",
- "username": "admin"
}
{- "id": "123",
- "realm": "master",
- "username": "admin",
- "firstName": "Hydroko",
- "lastName": "Admin",
- "email": "hydroko@cmas-systems.com",
- "enabled": true,
- "roles": [
- "admin",
- "sys_admin"
], - "environments": [
- "dev",
- "tst"
], - "deviceTypes": [
- "hk_hydroko",
- "hydroko"
], - "_links": {
- "self": {
- "title": "The link to self",
- "type": "GET"
}, - "users": {
- "title": "The link to get all Users",
- "type": "GET"
}, - "update": {
- "title": "The link to update the User",
- "type": "PUT"
}
}
}
Load all existing users.
realmId required | string Example: master Realm identifier |
realm required | string Example: realm=master The realm name. |
Content-Type required | string Example: application/json Content type produced |
Accept required | string Example: application/hal+json Content type accepted |
OK
Not found
{- "_embedded": {
- "users": [
- {
- "id": "123",
- "realm": "master",
- "username": "admin",
- "firstName": "Hydroko",
- "lastName": "Admin",
- "email": "hydroko@cmas-systems.com",
- "enabled": true,
- "roles": [
- "admin",
- "sys_admin"
], - "environments": [
- "dev",
- "tst"
], - "deviceTypes": [
- "hk_hydroko",
- "hydroko"
]
}
]
}, - "page": {
- "size": 10,
- "totalElements": 1,
- "totalPages": 1,
- "number": 0
}
}
Load user using the given id
realmId required | string Example: master Realm identifier |
userId required | string Example: 123 The user unique identifier. |
Content-Type required | string Example: application/json Content type produced |
Accept required | string Example: application/hal+json Content type accepted |
OK
{- "id": "123",
- "realm": "master",
- "username": "admin",
- "firstName": "Hydroko",
- "lastName": "Admin",
- "email": "hydroko@cmas-systems.com",
- "enabled": true,
- "roles": [
- "admin",
- "sys_admin"
], - "environments": [
- "dev",
- "tst"
], - "deviceTypes": [
- "hk_hydroko",
- "hydroko"
], - "_links": {
- "self": {
- "title": "The link to self",
- "type": "GET"
}, - "users": {
- "title": "The link to get all Users",
- "type": "GET"
}, - "update": {
- "title": "The link to update the User",
- "type": "PUT"
}
}
}
Update a user identified by the parameter id with the given User.
realmId required | string Example: master Realm identifier |
userId required | string Example: 123 The user unique identifier. |
Content-Type required | string Example: application/json Content type produced |
Accept required | string Example: application/hal+json Content type accepted |
firstName required | string |
lastName required | string |
email required | string |
enabled required | boolean |
environments required | Array of strings |
deviceTypes required | Array of strings |
roles required | Array of strings |
OK
{- "firstName": "Hydroko",
- "lastName": "Admin",
- "email": "hydroko@cmas-systems.com",
- "enabled": true,
- "environments": [ ],
- "deviceTypes": [
- "dev",
- "tst"
], - "roles": [
- "hk_hydroko",
- "hydroko"
]
}
{- "id": "123",
- "realm": "master",
- "username": "admin",
- "firstName": "Hydroko",
- "lastName": "Admin",
- "email": "hydroko@cmas-systems.com",
- "enabled": true,
- "roles": [
- "admin",
- "sys_admin"
], - "environments": [
- "dev",
- "tst"
], - "deviceTypes": [
- "hk_hydroko",
- "hydroko"
], - "_links": {
- "self": {
- "title": "The link to self",
- "type": "GET"
}, - "users": {
- "title": "The link to get all Users",
- "type": "GET"
}, - "update": {
- "title": "The link to update the User",
- "type": "PUT"
}
}
}
The method allows to send an email to the user requesting that the user reset his password.
realmId required | string Example: master Realm identifier |
userId required | string Example: 123 The user unique identifier. |
Content-Type required | string Example: application/json Content type produced |
Accept required | string Example: application/hal+json Content type accepted |
No Content
The method allows to change the user status from enabled to disabled and the reverse When the user is disabled the active sessions are closed.
realmId required | string Example: master Realm identifier |
userId required | string Example: 123 The user unique identifier. |
Content-Type required | string Example: application/json Content type produced |
Accept required | string Example: application/hal+json Content type accepted |
No Content
Gets an aggregate of Hourly by AggregateFilter.
dispersed_value__gt required | integer <int32> Example: dispersed_value__gt=1 Filter by dispersed value |
X-Tenant-Id required | string Example: public Tenant name id |
Content-Type required | string Example: application/json Content type produced |
Accept required | string Example: application/hal+json Content type accepted |
OK
{- "_embedded": {
- "hourlies": [
- {
- "timestamp": "2020-05-06T13:18:17",
- "valid": false,
- "dispersed_value": 10
}
]
}, - "page": {
- "size": 10,
- "totalElements": 1,
- "totalPages": 1,
- "number": 0
}
}
Load a hourly data using the given id. Creates hypermedia links and templates on response.
id required | string Example: 123 Hourly data to search for. |
X-Tenant-Id required | string Example: public Tenant name id |
Content-Type required | string Example: application/json Content type produced |
Accept required | string Example: application/hal+json Content type accepted |
OK
{- "id": 123,
- "timestamp": "2020-05-06T13:18:17",
- "valid": true,
- "dispersed_value": 4,
- "device_number": "123456",
- "device_type": "SMARTVALVE",
- "_links": {
- "self": {
- "title": "Link to resource",
- "type": "GET"
}, - "device": {
- "title": "Link to get hourly's Device",
- "type": "GET"
}, - "hourlyData": {
- "title": "Link to get all hourly data",
- "type": "GET"
}
}
}
Lists hourly data for the user per given page, filter and ordering. Creates hypermedia links and templates on response.
dispersed_value__gt required | integer <int32> Example: dispersed_value__gt=1 filter by dispersed value |
X-Tenant-Id required | string Example: public Tenant name id |
Content-Type required | string Example: application/json Content type produced |
Accept required | string Example: application/hal+json Content type accepted |
OK
{- "_embedded": {
- "hourlies": [
- {
- "id": 123,
- "timestamp": "2020-05-06T13:18:17",
- "valid": true,
- "dispersed_value": 4,
- "device_number": "123456",
- "device_type": "SMARTVALVE",
- "_links": {
- "self": {
- "title": "Link to resource",
- "type": "GET"
}, - "device": {
- "title": "Link to get hourly's Device",
- "type": "GET"
}, - "hourlyData": {
- "title": "Link to get all hourly data",
- "type": "GET"
}
}
}
]
}, - "page": {
- "size": 10,
- "totalElements": 1,
- "totalPages": 1,
- "number": 0
}
}