POST api/appeventlog/validate

Request Information

URI Parameters

None.

Body Parameters

AppEventLogValidate
NameDescriptionTypeAdditional information
Reason

integer

Required

Rec

AppEventLog

None.

Id

integer

Required

EventSource

string

None.

EventType

integer

Required

EventTime

date

Required

Message

string

None.

Username

string

None.

EventId

integer

None.

Request Formats

application/json, text/json

Sample:
{
  "Reason": 1,
  "Rec": {
    "Id": 1,
    "EventSource": "sample string 2",
    "EventType": 3,
    "EventTime": "2025-10-25T23:08:32.5950471+02:00",
    "Message": "sample string 5",
    "Username": "sample string 6",
    "EventId": 1
  },
  "Id": 2,
  "EventSource": "sample string 3",
  "EventType": 4,
  "EventTime": "2025-10-25T23:08:32.5950471+02:00",
  "Message": "sample string 6",
  "Username": "sample string 7",
  "EventId": 1
}

application/xml, text/xml

Sample:
<AppEventLogValidate xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/IWeb.App.Models">
  <EventId>1</EventId>
  <EventSource>sample string 3</EventSource>
  <EventTime>2025-10-25T23:08:32.5950471+02:00</EventTime>
  <EventType>4</EventType>
  <Id>2</Id>
  <Message>sample string 6</Message>
  <Username>sample string 7</Username>
  <Reason>1</Reason>
  <Rec>
    <EventId>1</EventId>
    <EventSource>sample string 2</EventSource>
    <EventTime>2025-10-25T23:08:32.5950471+02:00</EventTime>
    <EventType>3</EventType>
    <Id>1</Id>
    <Message>sample string 5</Message>
    <Username>sample string 6</Username>
  </Rec>
</AppEventLogValidate>

application/x-www-form-urlencoded

Sample:

Failed to generate the sample for media type 'application/x-www-form-urlencoded'. Cannot use formatter 'JQueryMvcFormUrlEncodedFormatter' to write type 'AppEventLogValidate'.

Response Information

Resource Description

ValidationResult
NameDescriptionTypeAdditional information
ErrorMsg

string

None.

HintMsg

string

None.

ErrorFieldNames

Collection of string

None.

FieldName

string

None.

Response Formats

application/json, text/json

Sample:
{
  "ErrorMsg": "sample string 1",
  "HintMsg": "sample string 2",
  "ErrorFieldNames": [
    "sample string 1",
    "sample string 2"
  ],
  "FieldName": "sample string 3"
}

application/xml, text/xml

Sample:
<ValidationResult xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/IWeb.App.Models">
  <ErrorFieldNames xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
    <d2p1:string>sample string 1</d2p1:string>
    <d2p1:string>sample string 2</d2p1:string>
  </ErrorFieldNames>
  <ErrorMsg>sample string 1</ErrorMsg>
  <FieldName>sample string 3</FieldName>
  <HintMsg>sample string 2</HintMsg>
</ValidationResult>