POST api/cabreaderapi/add?siteId={siteId}

Request Information

URI Parameters

NameDescriptionTypeAdditional information
siteId

globally unique identifier

None.

Body Parameters

CabReaderViewModel
NameDescriptionTypeAdditional 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": "34efc7db-2ebf-4131-90a8-2fcd4c0aff83",
  "name": "sample string 2",
  "cab_reader_type_id": "e5b20e43-05f1-4747-a2a2-de491a0e9d7e",
  "port_com": 1,
  "baudrate": 1,
  "handshake": 4,
  "read_time_out": 1,
  "write_time_out": 1,
  "pc_id": "06d7b8d7-32e2-4d2e-a487-0a6b19dd78b0",
  "active": true,
  "site_id": "fca0c955-0890-415b-8d2e-6a7625e59ce2",
  "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>e5b20e43-05f1-4747-a2a2-de491a0e9d7e</cab_reader_type_id>
  <data_bits>8</data_bits>
  <handshake>4</handshake>
  <id>34efc7db-2ebf-4131-90a8-2fcd4c0aff83</id>
  <name>sample string 2</name>
  <parity>7</parity>
  <pc_id>06d7b8d7-32e2-4d2e-a487-0a6b19dd78b0</pc_id>
  <port_com>1</port_com>
  <read_time_out>1</read_time_out>
  <site_id>fca0c955-0890-415b-8d2e-6a7625e59ce2</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 identifier

Response Formats

application/json, text/json

Sample:
"bbf87de7-9594-41c2-88fe-878acb24d050"

application/xml, text/xml

Sample:
<guid xmlns="http://schemas.microsoft.com/2003/10/Serialization/">bbf87de7-9594-41c2-88fe-878acb24d050</guid>