POST api/errorlogs/addlog

Request Information

URI Parameters

None.

Body Parameters

LogDetails
NameDescriptionTypeAdditional information
Message

string

Required

EIN

string

None.

UserId

string

None.

User

string

None.

Level

string

Required

Exception

string

None.

Request Formats

application/json, text/json

Sample:
{
  "message": "sample string 1",
  "ein": "sample string 2",
  "userId": "sample string 3",
  "user": "sample string 4",
  "level": "sample string 5",
  "exception": "sample string 6"
}

application/xml, text/xml

Sample:
<LogDetails xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/DOL.WHD.Section14c.Log.Models">
  <EIN>sample string 2</EIN>
  <Exception>sample string 6</Exception>
  <Level>sample string 5</Level>
  <Message>sample string 1</Message>
  <User>sample string 4</User>
  <UserId>sample string 3</UserId>
</LogDetails>

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

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

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

Sample:

Sample not available.