POST OData/DocPumpReports

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 31003f04-0a3f-4627-8a8c-748d406b714d

URI Parameters

None.

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

Body Parameters

The entity to be created

docPumpReports

application/json, text/json:
{
  "DocIDPumpReports": 1,
  "PumpID": 1,
  "UserID": "sample string 2",
  "docDate": "2024-11-13T23:43:28.417144",
  "RPM": 1.1,
  "SuctionPress": 1.1,
  "DischargePress": 1.1,
  "RunTime": 1.1,
  "Stamp": "2024-11-13T23:43:28.417144",
  "Notes": "sample string 4",
  "InputByID": "sample string 5",
  "DocSourceCode": 1
}

Response Information

Success Response

docPumpReports

application/json, text/json:
{
  "DocIDPumpReports": 1,
  "PumpID": 1,
  "UserID": "sample string 2",
  "docDate": "2024-11-13T23:43:28.417144",
  "RPM": 1.1,
  "SuctionPress": 1.1,
  "DischargePress": 1.1,
  "RunTime": 1.1,
  "Stamp": "2024-11-13T23:43:28.417144",
  "Notes": "sample string 4",
  "InputByID": "sample string 5",
  "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"
    }
  }
}