POST api/Events/GetEventHistory

Request Information

URI Parameters

None.

Body Parameters

EventHistory
NameDescriptionTypeAdditional information
assetID

integer

None.

eventType

integer

None.

numberOfDataPoints

integer

None.

hours

integer

None.

Request Formats

application/json, text/json

Sample:
{
  "assetID": 1,
  "eventType": 2,
  "numberOfDataPoints": 1,
  "hours": 1
}

application/xml, text/xml

Sample:
<EventHistory xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/AirIQ.Online.WebApi.ViewModels">
  <assetID>1</assetID>
  <eventType>2</eventType>
  <hours>1</hours>
  <numberOfDataPoints>1</numberOfDataPoints>
</EventHistory>

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

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

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

Sample:

Sample not available.