POST api/rfidreaderapi/add?siteId={siteId}
Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| siteId | globally unique identifier |
None. |
Body Parameters
RfidReaderViewModel| Name | Description | Type | Additional information |
|---|---|---|---|
| duration | integer |
None. |
|
| id | globally unique identifier |
None. |
|
| ip | string |
None. |
|
| name | string |
Required |
|
| pc_id | globally unique identifier |
None. |
|
| power | decimal number |
None. |
|
| sector_entry | integer |
None. |
|
| sector_exit | integer |
None. |
|
| sensibility | decimal number |
None. |
|
| site_id | globally unique identifier |
Required |
|
| tag_filter | string |
None. |
|
| rfid_reader_type_id | globally unique identifier |
Required |
|
| active | boolean |
Required |
Request Formats
application/json, text/json
Sample:
{
"duration": 1,
"id": "be71b8a7-f5e8-408c-b353-643e2dde8329",
"ip": "sample string 2",
"name": "sample string 3",
"pc_id": "4d693556-8d00-4070-ae11-612840c1a155",
"power": 1.1,
"sector_entry": 1,
"sector_exit": 1,
"sensibility": 1.1,
"site_id": "e943a9dc-c44b-4209-b3b0-63ae00d2505e",
"tag_filter": "sample string 4",
"rfid_reader_type_id": "2405d0ba-160c-4bf3-b0fc-b899e7558758",
"active": true
}
application/xml, text/xml
Sample:
<rfid_reader xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/EntityModel"> <active>true</active> <duration>1</duration> <id>be71b8a7-f5e8-408c-b353-643e2dde8329</id> <ip>sample string 2</ip> <name>sample string 3</name> <pc_id>4d693556-8d00-4070-ae11-612840c1a155</pc_id> <power>1.1</power> <rfid_reader_type_id>2405d0ba-160c-4bf3-b0fc-b899e7558758</rfid_reader_type_id> <sector_entry>1</sector_entry> <sector_exit>1</sector_exit> <sensibility>1.1</sensibility> <site_id>e943a9dc-c44b-4209-b3b0-63ae00d2505e</site_id> <tag_filter>sample string 4</tag_filter> </rfid_reader>
application/x-www-form-urlencoded
Sample:
Response Information
Resource Description
globally unique identifierResponse Formats
application/json, text/json
Sample:
"154f512b-9841-4c6c-9759-ad2d2fdd5347"
application/xml, text/xml
Sample:
<guid xmlns="http://schemas.microsoft.com/2003/10/Serialization/">154f512b-9841-4c6c-9759-ad2d2fdd5347</guid>