POST api/forecastevolution

Post new or change an evolution parameter dictionary

Request Information

URI Parameters

None.

Body Parameters

Forecast evolution for adding or change

ForecastEvolutionDto
NameDescriptionTypeAdditional information
WellId

Well id

integer

None.

Dict

Evolution parameter dictionary

Dictionary of string [key] and decimal number [value]

None.

Request Formats

application/json, text/json

Sample:
{
  "WellId": 1,
  "Dict": {
    "sample string 1": 1.1,
    "sample string 2": 1.1
  }
}

application/xml, text/xml

Sample:
<ForecastEvolutionDto xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Reyvart.WellFileManager.Web.Models">
  <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>
  <WellId>1</WellId>
</ForecastEvolutionDto>

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

Response Information

Resource Description

Created evolution dictionary

IHttpActionResult

None.

Response Formats

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

Sample:

Sample not available.