POST api/Items/{item}/RunningRecords

Add a new Running record

Request Information

URI Parameters

NameDescriptionTypeAdditional information
item

The Item/Asset asset

string

Required

Body Parameters

The values to create the running record

RunningRecordPost
NameDescriptionTypeAdditional information
Date

The date that the value was made

date

Required

Operator

The operator/employee that made the running record

string

Max length: 15

Value

The running record value

decimal number

Required

Equal or above: 0

IsDifferential

If true, the value is relative and it's added to the last record value.
If false (the default), the value is absolute

boolean

None.

Notes

string

None.

Request Formats

Sample:
{
  "Date": "2017-09-23T17:55:00",
  "Operator": "DEMO",
  "Value": 300.33,
  "IsDifferential": false
}
Sample:
<RunningRecordPost 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>
  <IsDifferential>false</IsDifferential>
  <Item i:nil="true" />
  <Notes i:nil="true" />
  <Operator>DEMO</Operator>
  <Value>300.33</Value>
</RunningRecordPost>
Sample:
Date=2017-09-23T17%3A55%3A00&Operator=DEMO&Item=CO-0001&Value=300.33
Sample:
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="Date"

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

DEMO
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="Value"

300.33
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="IsDifferential"

False
--MultipartDataMediaFormatterBoundary1q2w3e--

Response Information

Resource Description

Returns the ID of the Running record; Status asset: 201 (Created)

integer

Response Formats

Sample:
1
Sample:
<int xmlns="http://schemas.microsoft.com/2003/10/Serialization/">1</int>
Sample:
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name=""

1
--MultipartDataMediaFormatterBoundary1q2w3e--