POST api/Well

Post well

Request Information

URI Parameters

None.

Body Parameters

Well

WellDto
NameDescriptionTypeAdditional information
Id

Well id

integer

None.

WellGroupId

Well group id

integer

Required

SketchDesc

Sketch description

string

Max length: 8000

WellType

Well type

string

Max length: 20

FlowType

Flow type

string

Max length: 20

Comment

Well comment

string

Max length: 8000

Name

Well name

string

Required

Max length: 255

Description

Well description

string

Max length: 8000

ProductionHistory

Well production history

string

Max length: 8000

CompletionType

Completion type

string

Max length: 8000

DrillingDate

Drilling date

unsigned integer

None.

FormationCompleteState

Formation complete state

string

Max length: 8000

IntegrityStatus

Integrity status

string

Max length: 8000

LastInterventionDate

Last intervention date

unsigned integer

None.

LastInterventionType

Last intervention type

string

Max length: 8000

PerforationDepth

Perforation depth

string

Max length: 8000

PressureData

Pressure data

string

Max length: 8000

Pvt

Pvt

string

Max length: 8000

ReservoirData

Reservoir data

string

Max length: 8000

IsActive

Whether this well is active: for monitoring, potential tables, etc.

boolean

None.

ListOfSectionOfWellDto

List of sections of well

Collection of SectionOfWellDto

None.

Request Formats

application/json, text/json

Sample:
{
  "Id": 1,
  "WellGroupId": 2,
  "SketchDesc": "sample string 3",
  "WellType": "sample string 4",
  "FlowType": "sample string 5",
  "Comment": "sample string 6",
  "Name": "sample string 7",
  "Description": "sample string 8",
  "ProductionHistory": "sample string 9",
  "CompletionType": "sample string 10",
  "DrillingDate": 1,
  "FormationCompleteState": "sample string 11",
  "IntegrityStatus": "sample string 12",
  "LastInterventionDate": 1,
  "LastInterventionType": "sample string 13",
  "PerforationDepth": "sample string 14",
  "PressureData": "sample string 15",
  "Pvt": "sample string 16",
  "ReservoirData": "sample string 17",
  "IsActive": true,
  "ListOfSectionOfWellDto": [
    {
      "WellId": 1,
      "Id": "ced562fd-4898-4953-b2b2-0316a20cd7d6",
      "IsVisible": true,
      "SectionPatternId": "sample string 4"
    },
    {
      "WellId": 1,
      "Id": "ced562fd-4898-4953-b2b2-0316a20cd7d6",
      "IsVisible": true,
      "SectionPatternId": "sample string 4"
    }
  ]
}

application/xml, text/xml

Sample:
<WellDto xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Reyvart.WellFileManager.Web.Models">
  <Comment>sample string 6</Comment>
  <CompletionType>sample string 10</CompletionType>
  <Description>sample string 8</Description>
  <DrillingDate>1</DrillingDate>
  <FlowType>sample string 5</FlowType>
  <FormationCompleteState>sample string 11</FormationCompleteState>
  <Id>1</Id>
  <IntegrityStatus>sample string 12</IntegrityStatus>
  <IsActive>true</IsActive>
  <LastInterventionDate>1</LastInterventionDate>
  <LastInterventionType>sample string 13</LastInterventionType>
  <ListOfSectionOfWellDto>
    <SectionOfWellDto>
      <Id>ced562fd-4898-4953-b2b2-0316a20cd7d6</Id>
      <IsVisible>true</IsVisible>
      <SectionPatternId>sample string 4</SectionPatternId>
      <WellId>1</WellId>
    </SectionOfWellDto>
    <SectionOfWellDto>
      <Id>ced562fd-4898-4953-b2b2-0316a20cd7d6</Id>
      <IsVisible>true</IsVisible>
      <SectionPatternId>sample string 4</SectionPatternId>
      <WellId>1</WellId>
    </SectionOfWellDto>
  </ListOfSectionOfWellDto>
  <Name>sample string 7</Name>
  <PerforationDepth>sample string 14</PerforationDepth>
  <PressureData>sample string 15</PressureData>
  <ProductionHistory>sample string 9</ProductionHistory>
  <Pvt>sample string 16</Pvt>
  <ReservoirData>sample string 17</ReservoirData>
  <SketchDesc>sample string 3</SketchDesc>
  <WellGroupId>2</WellGroupId>
  <WellType>sample string 4</WellType>
</WellDto>

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

Response Information

Resource Description

Created well

IHttpActionResult

None.

Response Formats

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

Sample:

Sample not available.