PUT api/well-fields/maps/{idOfMapOfWield}/well-markers/{idOfWell}

Put well in well field map: change only coordinates and status

Request Information

URI Parameters

NameDescriptionTypeAdditional information
idOfMapOfWield

Id of map

integer

Required

idOfWell

Id of well

integer

Required

Body Parameters

Well coords

WellMarkerOfMapOfWieldDto
NameDescriptionTypeAdditional information
CoordX

X coord: pixels from left of the map (longitude)

decimal number

Required

Matching regular expression pattern: ^\d{1,8}.\d{0,1}$

CoordY

Y coord: pixels from top of the map (latitude)

decimal number

Required

Matching regular expression pattern: ^\d{1,8}.\d{0,1}$

IdOfMapOfWield

Map id

integer

Required

IdOfWell

Well id

integer

Required

IsDrilled

Whether this well is drilled on this map (active or not)

boolean

Required

Request Formats

application/json, text/json

Sample:
{
  "CoordX": 1.0,
  "CoordY": 2.0,
  "IdOfMapOfWield": 3,
  "IdOfWell": 4,
  "IsDrilled": true
}

application/xml, text/xml

Sample:
<WellMarkerOfMapOfWieldDto xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Reyvart.WellFileManager.Web.Models">
  <CoordX>1</CoordX>
  <CoordY>2</CoordY>
  <IdOfMapOfWield>3</IdOfMapOfWield>
  <IdOfWell>4</IdOfWell>
  <IsDrilled>true</IsDrilled>
</WellMarkerOfMapOfWieldDto>

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

Response Information

Resource Description

Changed well in well field map

IHttpActionResult

None.

Response Formats

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

Sample:

Sample not available.