POST api/AuditTrail/CreateAudit

Request Information

URI Parameters

None.

Body Parameters

AuditTrailModel
NameDescriptionTypeAdditional information
UserId

string

Required

IPAddress

string

None.

ActionPerformed

string

Required

DataAffected

string

Required

Request Formats

application/json, text/json

Sample:
{
  "UserId": "sample string 1",
  "IPAddress": "sample string 2",
  "ActionPerformed": "sample string 3",
  "DataAffected": "sample string 4"
}

application/xml, text/xml

Sample:
<AuditTrailModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Cargo.Data.Model">
  <ActionPerformed>sample string 3</ActionPerformed>
  <DataAffected>sample string 4</DataAffected>
  <IPAddress>sample string 2</IPAddress>
  <UserId>sample string 1</UserId>
</AuditTrailModel>

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

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

application/json, text/json, application/xml, text/xml

Sample:

Sample not available.