POST OData/DocPlungerLifts

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 49662982-a46a-47d9-ab9e-e414990d0804

URI Parameters

None.

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

Body Parameters

The entity to be created

docPlungerLift

application/json, text/json:
{
  "DocIDPlungerLift": 1,
  "PlungerLiftID": 2,
  "UserID": "sample string 3",
  "docDate": "2024-11-13T23:27:29.4053274",
  "InitCasingPress": 1.1,
  "FinalCasingPress": 1.1,
  "InitFlowPress": 1.1,
  "FinalFlowPress": 1.1,
  "InitShutInPress": 1.1,
  "FinalShutInPress": 1.1,
  "ShutInTubingPress": 1.1,
  "ShutInCasingPress": 1.1,
  "ShutInTime": 1.1,
  "VentTime": 1.1,
  "FlowTime": 1.1,
  "AfterFlowTime": 1.1,
  "PlungerTravelTime": 1.1,
  "Cycles": 1.1,
  "Arrivals": 1.1,
  "VentGas": 1.1,
  "Delay": 1.1,
  "DaysInHole": 1,
  "Inspected": true,
  "Stamp": "2024-11-13T23:27:29.4053274",
  "Notes": "sample string 6",
  "InputByID": "sample string 7",
  "DocSourceCode": 1,
  "PlungerSize": 1.1,
  "PlungerTypeID": 1
}

Response Information

Success Response

docPlungerLift

application/json, text/json:
{
  "DocIDPlungerLift": 1,
  "PlungerLiftID": 2,
  "UserID": "sample string 3",
  "docDate": "2024-11-13T23:27:29.4053274",
  "InitCasingPress": 1.1,
  "FinalCasingPress": 1.1,
  "InitFlowPress": 1.1,
  "FinalFlowPress": 1.1,
  "InitShutInPress": 1.1,
  "FinalShutInPress": 1.1,
  "ShutInTubingPress": 1.1,
  "ShutInCasingPress": 1.1,
  "ShutInTime": 1.1,
  "VentTime": 1.1,
  "FlowTime": 1.1,
  "AfterFlowTime": 1.1,
  "PlungerTravelTime": 1.1,
  "Cycles": 1.1,
  "Arrivals": 1.1,
  "VentGas": 1.1,
  "Delay": 1.1,
  "DaysInHole": 1,
  "Inspected": true,
  "Stamp": "2024-11-13T23:27:29.4053274",
  "Notes": "sample string 6",
  "InputByID": "sample string 7",
  "DocSourceCode": 1,
  "PlungerSize": 1.1,
  "PlungerTypeID": 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"
    }
  }
}