POST api/Items/{item}/Readings/{param}

Add a new Reading

Request Information

URI Parameters

NameDescriptionTypeAdditional information
item

The Item/Asset asset

string

Required

param

The Reading Point asset

string

Required

Body Parameters

The reading

Asset.Reading
NameDescriptionTypeAdditional information
Date

The date that the value was made

date

Required

Value

The reading value

decimal number

Required

Notes

Aditional notes to include with the reading

string

Max length: 255

Employee

The operator/employee that made the reading

string

Max length: 15

Request Formats

Sample:
{
  "Date": "2017-09-23T17:55:00",
  "Value": 23.5,
  "Notes": "The meter is damaged",
  "Employee": "DEMO"
}
Sample:
<Reading xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/WebAPI.Models.Parque">
  <Date>2017-09-23T17:55:00</Date>
  <Employee>DEMO</Employee>
  <Notes>The meter is damaged</Notes>
  <Value>23.5</Value>
</Reading>
Sample:

Sample not available.

Sample:
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="Date"

2017-09-23T17:55:00.0000000
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="Value"

23.5
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="Notes"

The meter is damaged
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="Employee"

DEMO
--MultipartDataMediaFormatterBoundary1q2w3e--

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.