POST OData/DocChemicalReports

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 f75a91c7-254d-4212-a607-b0be106ee72a

URI Parameters

None.

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

Body Parameters

The entity to be created

docChemicalReport

application/json, text/json:
{
  "DocIDChemicalReports": 1,
  "UserID": "sample string 2",
  "EntityID": 3,
  "EntityTypeID": 4,
  "docDate": "2024-11-13T23:43:47.6272452",
  "ChemCoCode": 1,
  "ChemicalName": "sample string 6",
  "ChemTypeCode": 1,
  "InjectPointTypeID": 1,
  "BeginInven": 1.1,
  "EndInven": 1.1,
  "UnitsDelivered": 1.1,
  "UnitsDelivCode": 1,
  "UnitsApplied": 1.1,
  "UnitsAppliedCode": 1,
  "ApplicationCost": 1.0,
  "AppMethodCode": 1,
  "UnitsFlush": 1.1,
  "UnitsFlushCode": 1,
  "FlushTypeCode": 1,
  "Stamp": "2024-11-13T23:43:47.6272452",
  "Notes": "sample string 8",
  "InputByID": "sample string 9",
  "DocSourceCode": 1
}

Response Information

Success Response

docChemicalReport

application/json, text/json:
{
  "DocIDChemicalReports": 1,
  "UserID": "sample string 2",
  "EntityID": 3,
  "EntityTypeID": 4,
  "docDate": "2024-11-13T23:43:47.6363184",
  "ChemCoCode": 1,
  "ChemicalName": "sample string 6",
  "ChemTypeCode": 1,
  "InjectPointTypeID": 1,
  "BeginInven": 1.1,
  "EndInven": 1.1,
  "UnitsDelivered": 1.1,
  "UnitsDelivCode": 1,
  "UnitsApplied": 1.1,
  "UnitsAppliedCode": 1,
  "ApplicationCost": 1.0,
  "AppMethodCode": 1,
  "UnitsFlush": 1.1,
  "UnitsFlushCode": 1,
  "FlushTypeCode": 1,
  "Stamp": "2024-11-13T23:43:47.6363184",
  "Notes": "sample string 8",
  "InputByID": "sample string 9",
  "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"
    }
  }
}