POST api/RecordItems

Creates RecordItem.

Request Information

URI Parameters

None.

Body Parameters

RecordItem
NameDescriptionTypeAdditional information
ID

string

None.

AddressID

string

None.

Time

date

None.

UnitID

integer

None.

SubID

integer

None.

Phase

byte

None.

Command

ControlCommand

None.

ID

integer

None.

Request Formats

application/json, text/json

Sample:
{
  "ID": "sample string 1",
  "AddressID": "sample string 2",
  "Time": "2024-11-21T10:38:58.1144202+01:00",
  "UnitID": 4,
  "SubID": 5,
  "Phase": 64,
  "Command": 0
}

text/html

Sample:
{"ID":"sample string 1","AddressID":"sample string 2","Time":"2024-11-21T10:38:58.1144202+01:00","UnitID":4,"SubID":5,"Phase":64,"Command":0}

application/xml, text/xml

Sample:
<RecordItem xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ZPPModel">
  <ID xmlns:d2p1="http://www.w3.org/2001/XMLSchema" i:type="d2p1:int">7</ID>
  <AddressID>sample string 2</AddressID>
  <Command>NoOperation</Command>
  <ID xmlns:d2p1="http://www.w3.org/2001/XMLSchema" i:type="d2p1:string">sample string 1</ID>
  <Phase>64</Phase>
  <SubID>5</SubID>
  <Time>2024-11-21T10:38:58.1144202+01:00</Time>
  <UnitID>4</UnitID>
</RecordItem>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

string

Response Formats

application/json, text/json, text/html

Sample:
"sample string 1"

application/xml, text/xml

Sample:
<string xmlns="http://schemas.microsoft.com/2003/10/Serialization/">sample string 1</string>