POST api/wells/{idOfWell}/procent-borders

Create (or modify only the procent value) procent border

Request Information

URI Parameters

NameDescriptionTypeAdditional information
idOfWell

Id of well

integer

Required

Body Parameters

Procent border data transfer object

ProcentBorderDto
NameDescriptionTypeAdditional information
IdOfWell

Id of well

integer

Required

IdOfWfmParameter

Id of parameter (Varchar(16))

string

Required

Procent

Procent value: DECIMAL(9,6)

decimal number

Required

Request Formats

application/json, text/json

Sample:
{
  "IdOfWell": 1,
  "IdOfWfmParameter": "sample string 2",
  "Procent": 3.0
}

application/xml, text/xml

Sample:
<ProcentBorderDto xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Reyvart.WellFileManager.Web.Models">
  <IdOfWell>1</IdOfWell>
  <IdOfWfmParameter>sample string 2</IdOfWfmParameter>
  <Procent>3</Procent>
</ProcentBorderDto>

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

Response Information

Resource Description

Ok or Created status with the DTO model

IHttpActionResult

None.

Response Formats

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

Sample:

Sample not available.