POST api/cabreaderapi/add?siteId={siteId}
Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| siteId | globally unique identifier |
None. |
Body Parameters
CabReaderViewModel| Name | Description | Type | Additional information |
|---|---|---|---|
| id | globally unique identifier |
None. |
|
| name | string |
Required String length: inclusive between 0 and 100 |
|
| cab_reader_type_id | globally unique identifier |
Required |
|
| port_com | integer |
None. |
|
| baudrate | integer |
None. |
|
| handshake | integer |
Required |
|
| read_time_out | integer |
None. |
|
| write_time_out | integer |
None. |
|
| pc_id | globally unique identifier |
None. |
|
| active | boolean |
Required |
|
| site_id | globally unique identifier |
Required |
|
| parity | integer |
Required |
|
| data_bits | integer |
Required |
|
| stop_bits | integer |
Required |
Request Formats
application/json, text/json
Sample:
{
"id": "d0f1b4ca-92d4-44dd-8b04-0d7bd31cfc81",
"name": "sample string 2",
"cab_reader_type_id": "af613ba7-606c-40f5-958f-174304eff9ad",
"port_com": 1,
"baudrate": 1,
"handshake": 4,
"read_time_out": 1,
"write_time_out": 1,
"pc_id": "b5114c8f-05ff-4a9e-b45d-2b7eca846bd1",
"active": true,
"site_id": "489ae921-0d87-4e30-8c58-7a581cae8319",
"parity": 7,
"data_bits": 8,
"stop_bits": 9
}
application/xml, text/xml
Sample:
<cab_reader xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/EntityModel"> <active>true</active> <baudrate>1</baudrate> <cab_reader_type_id>af613ba7-606c-40f5-958f-174304eff9ad</cab_reader_type_id> <data_bits>8</data_bits> <handshake>4</handshake> <id>d0f1b4ca-92d4-44dd-8b04-0d7bd31cfc81</id> <name>sample string 2</name> <parity>7</parity> <pc_id>b5114c8f-05ff-4a9e-b45d-2b7eca846bd1</pc_id> <port_com>1</port_com> <read_time_out>1</read_time_out> <site_id>489ae921-0d87-4e30-8c58-7a581cae8319</site_id> <stop_bits>9</stop_bits> <write_time_out>1</write_time_out> </cab_reader>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
globally unique identifierResponse Formats
application/json, text/json
Sample:
"3312eb65-0a39-48b3-bb43-94ce48649f33"
application/xml, text/xml
Sample:
<guid xmlns="http://schemas.microsoft.com/2003/10/Serialization/">3312eb65-0a39-48b3-bb43-94ce48649f33</guid>