POST api/Devices
Request Information
URI Parameters
None.
Body Parameters
DevicesName | Description | Type | Additional information |
---|---|---|---|
sn | string |
Required String length: inclusive between 0 and 20 |
|
expNo | string |
String length: inclusive between 0 and 30 |
|
inspectorId | string |
String length: inclusive between 0 and 100 |
|
token | string |
String length: inclusive between 0 and 50 |
|
type | string |
String length: inclusive between 0 and 10 |
|
unit | byte |
None. |
|
tempUnit | byte |
None. |
|
notiEnable | byte |
None. |
|
notiTime | string |
None. |
|
warnEnable | byte |
None. |
|
warnLevel | integer |
None. |
|
warnFlag | byte |
None. |
|
location | string |
None. |
|
latitude | decimal number |
None. |
|
longitude | decimal number |
None. |
|
timeZone | string |
None. |
|
ssid | string |
String length: inclusive between 0 and 30 |
|
moduleSerialNo | string |
String length: inclusive between 0 and 20 |
|
moduleFactor | decimal number |
None. |
|
caseFactor | decimal number |
None. |
|
calibrationDate | date |
None. |
|
ver | string |
String length: inclusive between 0 and 10 |
|
server_flag | byte |
None. |
|
status | byte |
None. |
|
logSave | byte |
None. |
|
dateTime | date |
None. |
|
radonValue | integer |
None. |
|
temp | decimal number |
None. |
|
humi | decimal number |
None. |
|
procTime | integer |
None. |
|
currentCnt | integer |
None. |
|
pastCnt | integer |
None. |
|
avgRd24h | integer |
None. |
|
avgRd48h | integer |
None. |
|
avgRd72h | integer |
None. |
|
avgRd7day | integer |
None. |
|
avgRd1mon | integer |
None. |
|
measStatus | byte |
None. |
|
waitNowCnt | integer |
None. |
|
measNowCnt | integer |
None. |
Request Formats
application/json, text/json
Sample:
{ "sn": "sample string 1", "expNo": "sample string 2", "inspectorId": "sample string 3", "token": "sample string 4", "type": "sample string 5", "unit": 64, "tempUnit": 64, "notiEnable": 64, "notiTime": "sample string 6", "warnEnable": 64, "warnLevel": 1, "warnFlag": 64, "location": "sample string 7", "latitude": 1.1, "longitude": 1.1, "timeZone": "sample string 8", "ssid": "sample string 9", "moduleSerialNo": "sample string 10", "moduleFactor": 1.1, "caseFactor": 1.1, "calibrationDate": "2024-11-17T06:15:47.2376529+00:00", "ver": "sample string 11", "server_flag": 64, "status": 64, "logSave": 64, "dateTime": "2024-11-17T06:15:47.2376529+00:00", "radonValue": 1, "temp": 1.1, "humi": 1.1, "procTime": 1, "currentCnt": 1, "pastCnt": 1, "avgRd24h": 1, "avgRd48h": 1, "avgRd72h": 1, "avgRd7day": 1, "avgRd1mon": 1, "measStatus": 64, "waitNowCnt": 1, "measNowCnt": 1 }
application/xml, text/xml
Sample:
<Devices xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/RMnS_Pro_API.Models"> <avgRd1mon>1</avgRd1mon> <avgRd24h>1</avgRd24h> <avgRd48h>1</avgRd48h> <avgRd72h>1</avgRd72h> <avgRd7day>1</avgRd7day> <calibrationDate>2024-11-17T06:15:47.2376529+00:00</calibrationDate> <caseFactor>1.1</caseFactor> <currentCnt>1</currentCnt> <dateTime>2024-11-17T06:15:47.2376529+00:00</dateTime> <expNo>sample string 2</expNo> <humi>1.1</humi> <inspectorId>sample string 3</inspectorId> <latitude>1.1</latitude> <location>sample string 7</location> <logSave>64</logSave> <longitude>1.1</longitude> <measNowCnt>1</measNowCnt> <measStatus>64</measStatus> <moduleFactor>1.1</moduleFactor> <moduleSerialNo>sample string 10</moduleSerialNo> <notiEnable>64</notiEnable> <notiTime>sample string 6</notiTime> <pastCnt>1</pastCnt> <procTime>1</procTime> <radonValue>1</radonValue> <server_flag>64</server_flag> <sn>sample string 1</sn> <ssid>sample string 9</ssid> <status>64</status> <temp>1.1</temp> <tempUnit>64</tempUnit> <timeZone>sample string 8</timeZone> <token>sample string 4</token> <type>sample string 5</type> <unit>64</unit> <ver>sample string 11</ver> <waitNowCnt>1</waitNowCnt> <warnEnable>64</warnEnable> <warnFlag>64</warnFlag> <warnLevel>1</warnLevel> </Devices>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
IHttpActionResultNone.
Response Formats
application/json, text/json, application/xml, text/xml
Sample:
Sample not available.