POST api/LogMessages

Creates LogMessage.

Request Information

URI Parameters

None.

Body Parameters

LogMessage
NameDescriptionTypeAdditional information
ID

integer

None.

AddressID

string

None.

Time

date

None.

Type

LogType

None.

TypeName

string

None.

Source

integer

None.

Destination

integer

None.

Message

string

None.

Request Formats

application/json, text/json

Sample:
{
  "ID": 1,
  "AddressID": "sample string 2",
  "Time": "2020-07-11T06:16:16.1559665+02:00",
  "Type": 0,
  "TypeName": "No response",
  "Source": 4,
  "Destination": 5,
  "Message": "sample string 6"
}

text/html

Sample:
{"ID":1,"AddressID":"sample string 2","Time":"2020-07-11T06:16:16.1559665+02:00","Type":0,"TypeName":"No response","Source":4,"Destination":5,"Message":"sample string 6"}

application/xml, text/xml

Sample:
<LogMessage xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ZPPModel.Model">
  <AddressID>sample string 2</AddressID>
  <Destination>5</Destination>
  <ID>1</ID>
  <Message>sample string 6</Message>
  <Source>4</Source>
  <Time>2020-07-11T06:16:16.1559665+02:00</Time>
  <Type>NoResponse</Type>
</LogMessage>

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>