POST api/wells/{idOfWell}/monitoring-records/{unixTime}
Create or update a monitoring data record
Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| idOfWell | integer |
Required |
|
| unixTime | integer |
Required |
Body Parameters
MonitoringRecordDto| Name | Description | Type | Additional information |
|---|---|---|---|
| IdOfWell |
Id of a well (parent of data) |
integer |
None. |
| UnixTime |
Time of this data record, in unix time seconds |
integer |
None. |
| Dict |
Values for wfm parameters |
Dictionary of string [key] and decimal number [value] |
None. |
| AverageDict |
Average values for parameters in last 30 days |
Dictionary of string [key] and decimal number [value] |
None. |
Request Formats
application/json, text/json
Sample:
{
"IdOfWell": 1,
"UnixTime": 2,
"Dict": {
"sample string 1": 1.1,
"sample string 2": 1.1
},
"AverageDict": {
"sample string 1": 1.1,
"sample string 2": 1.1
}
}
application/xml, text/xml
Sample:
<MonitoringRecordDto xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Reyvart.WellFileManager.Web.Models">
<AverageDict xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d2p1:KeyValueOfstringNullableOfdoubleU6ho3Bhd>
<d2p1:Key>sample string 1</d2p1:Key>
<d2p1:Value>1.1</d2p1:Value>
</d2p1:KeyValueOfstringNullableOfdoubleU6ho3Bhd>
<d2p1:KeyValueOfstringNullableOfdoubleU6ho3Bhd>
<d2p1:Key>sample string 2</d2p1:Key>
<d2p1:Value>1.1</d2p1:Value>
</d2p1:KeyValueOfstringNullableOfdoubleU6ho3Bhd>
</AverageDict>
<Dict xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d2p1:KeyValueOfstringNullableOfdoubleU6ho3Bhd>
<d2p1:Key>sample string 1</d2p1:Key>
<d2p1:Value>1.1</d2p1:Value>
</d2p1:KeyValueOfstringNullableOfdoubleU6ho3Bhd>
<d2p1:KeyValueOfstringNullableOfdoubleU6ho3Bhd>
<d2p1:Key>sample string 2</d2p1:Key>
<d2p1:Value>1.1</d2p1:Value>
</d2p1:KeyValueOfstringNullableOfdoubleU6ho3Bhd>
</Dict>
<IdOfWell>1</IdOfWell>
<UnixTime>2</UnixTime>
</MonitoringRecordDto>
application/x-www-form-urlencoded
Sample:
Response Information
Resource Description
IHttpActionResultNone.
Response Formats
application/json, text/json, application/xml, text/xml
Sample:
Sample not available.