POST api/Audit/UpdateAuditTrail

Request Information

URI Parameters

None.

Body Parameters

UpdateAuditEnt
NameDescriptionTypeAdditional information
OldRecordObject

Object

None.

RecordID

integer

None.

AuditDetail

string

None.

ModuleName

string

None.

RecordObject

Object

None.

EventByID

integer

None.

EventByName

string

None.

AuditTrailModule

string

None.

lstExtraTrail

Collection of AuditTrailEnt

None.

DataFormattingBy

string

None.

Request Formats

application/json, text/json

Sample:
{
  "OldRecordObject": {},
  "RecordID": 2,
  "AuditDetail": "sample string 3",
  "ModuleName": "sample string 4",
  "RecordObject": {},
  "EventByID": 6,
  "EventByName": "sample string 7",
  "AuditTrailModule": "sample string 8",
  "lstExtraTrail": [
    {
      "AuditId": 1,
      "ReferenceId": "sample string 2",
      "LabelName": "sample string 3",
      "FieldName": "sample string 4",
      "OldValue": "sample string 5",
      "NewValue": "sample string 6",
      "TableAudit": {
        "FieldName": "sample string 1",
        "LabelName": "sample string 2",
        "IsKey": true,
        "QueryForValue": "sample string 4",
        "IsReferenceTable": true
      },
      "OldValueKey": "sample string 7",
      "NewValueKey": "sample string 8",
      "Operation": 0
    },
    {
      "AuditId": 1,
      "ReferenceId": "sample string 2",
      "LabelName": "sample string 3",
      "FieldName": "sample string 4",
      "OldValue": "sample string 5",
      "NewValue": "sample string 6",
      "TableAudit": {
        "FieldName": "sample string 1",
        "LabelName": "sample string 2",
        "IsKey": true,
        "QueryForValue": "sample string 4",
        "IsReferenceTable": true
      },
      "OldValueKey": "sample string 7",
      "NewValueKey": "sample string 8",
      "Operation": 0
    }
  ],
  "DataFormattingBy": "sample string 9"
}

application/xml, text/xml

Sample:
<UpdateAuditEnt xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/AuditService">
  <AuditDetail>sample string 3</AuditDetail>
  <AuditTrailModule>sample string 8</AuditTrailModule>
  <DataFormattingBy>sample string 9</DataFormattingBy>
  <EventByID>6</EventByID>
  <EventByName>sample string 7</EventByName>
  <ModuleName>sample string 4</ModuleName>
  <RecordID>2</RecordID>
  <RecordObject />
  <lstExtraTrail>
    <AuditTrailEnt>
      <AuditId>1</AuditId>
      <FieldName>sample string 4</FieldName>
      <LabelName>sample string 3</LabelName>
      <NewValue>sample string 6</NewValue>
      <NewValueKey>sample string 8</NewValueKey>
      <OldValue>sample string 5</OldValue>
      <OldValueKey>sample string 7</OldValueKey>
      <Operation>Add</Operation>
      <ReferenceId>sample string 2</ReferenceId>
      <TableAudit>
        <FieldName>sample string 1</FieldName>
        <IsKey>true</IsKey>
        <IsReferenceTable>true</IsReferenceTable>
        <LabelName>sample string 2</LabelName>
        <QueryForValue>sample string 4</QueryForValue>
      </TableAudit>
    </AuditTrailEnt>
    <AuditTrailEnt>
      <AuditId>1</AuditId>
      <FieldName>sample string 4</FieldName>
      <LabelName>sample string 3</LabelName>
      <NewValue>sample string 6</NewValue>
      <NewValueKey>sample string 8</NewValueKey>
      <OldValue>sample string 5</OldValue>
      <OldValueKey>sample string 7</OldValueKey>
      <Operation>Add</Operation>
      <ReferenceId>sample string 2</ReferenceId>
      <TableAudit>
        <FieldName>sample string 1</FieldName>
        <IsKey>true</IsKey>
        <IsReferenceTable>true</IsReferenceTable>
        <LabelName>sample string 2</LabelName>
        <QueryForValue>sample string 4</QueryForValue>
      </TableAudit>
    </AuditTrailEnt>
  </lstExtraTrail>
  <OldRecordObject />
</UpdateAuditEnt>

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 'UpdateAuditEnt'.

Response Information

Resource Description

HttpResponseMessage
NameDescriptionTypeAdditional information
Version

Version

None.

Content

HttpContent

None.

StatusCode

HttpStatusCode

None.

ReasonPhrase

string

None.

Headers

Collection of Object

None.

RequestMessage

HttpRequestMessage

None.

IsSuccessStatusCode

boolean

None.