POST OData/DocWellHeadPressures

Creates a new entity

Request Information

Header Parameters

Header Name Description Type Additional information
Accept Mime Type

The accept header used to specify the acceptable response mime type

string

Optional

Authorization Scheme

The authorization method (should always be Basic)

string

Required

Security Token

The security token obtained by successfully authenticating a user with the Account API

globally unique identifier

Required

Accept: application/json
Authorization: Basic de82881c-29d4-4410-8bb5-4bef37e05466

URI Parameters

None.

https://apps.fielddirect.com/DataServices/OData/DocWellHeadPressures

Body Parameters

The entity to be created

docWellHeadPressure

application/json, text/json:
{
  "DocIDWellHeadPressures": 1,
  "UserID": "sample string 2",
  "ProductionPtID": 1,
  "docDate": "2024-11-13T23:25:10.7207778",
  "TubingPressure": 1.1,
  "AvgTubingPress": 1.1,
  "MinTubingPress": 1.1,
  "MaxTubingPress": 1.1,
  "CasingPressure": 1.1,
  "AvgCasingPress": 1.1,
  "MinCasingPress": 1.1,
  "MaxCasingPress": 1.1,
  "ChokeSize": 1.1,
  "Stamp": "2024-11-13T23:25:10.7207778",
  "Notes": "sample string 5",
  "InputByID": "sample string 6",
  "DocSourceCode": 1
}

Response Information

Success Response

docWellHeadPressure

application/json, text/json:
{
  "DocIDWellHeadPressures": 1,
  "UserID": "sample string 2",
  "ProductionPtID": 1,
  "docDate": "2024-11-13T23:25:10.7264374",
  "TubingPressure": 1.1,
  "AvgTubingPress": 1.1,
  "MinTubingPress": 1.1,
  "MaxTubingPress": 1.1,
  "CasingPressure": 1.1,
  "AvgCasingPress": 1.1,
  "MinCasingPress": 1.1,
  "MaxCasingPress": 1.1,
  "ChokeSize": 1.1,
  "Stamp": "2024-11-13T23:25:10.7264374",
  "Notes": "sample string 5",
  "InputByID": "sample string 6",
  "DocSourceCode": 1
}

Error Response

An error response containing the details about a failed api request

ErrorResponse

application/json, text/json:
{
  "error": {
    "batcherror": {
      "operationindex": 1,
      "requestindex": 2
    },
    "code": "UnknownError",
    "innererror": {
      "innererror": {
        "message": {
          "lang": "en-US",
          "value": "sample string 3"
        },
        "type": "sample string 5",
        "trace": "sample string 4"
      },
      "message": {
        "lang": "en-US",
        "value": "sample string 6"
      },
      "type": "sample string 8",
      "trace": "sample string 7"
    },
    "message": {
      "lang": "en-US",
      "value": "sample string 9"
    }
  }
}