PUT OData/DocEmissionControlDevices({docIDEmissionControlDevices})

Updates an entity based on the provided values (all fields will be updated)

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 1daef4e7-c740-442a-86bf-e5ea9262976d

URI Parameters

Name Description Type Additional information
key

The key of the entity to update

integer

Required

https://apps.fielddirect.com/DataServices/OData/DocEmissionControlDevices(1)

Body Parameters

The updates to be applied to the entity

docEmissionControlDevices

application/json, text/json:
{
  "docIDEmissionControlDevices": 1,
  "ECDID": 2,
  "docDate": "2024-11-13T23:27:21.190931",
  "UserID": "sample string 4",
  "PipingOK": true,
  "ValvesOK": true,
  "OnLine": true,
  "PilotLit": true,
  "AutoIgniterOK": true,
  "AllVapor": true,
  "VisibleEmissions": true,
  "PriorDate": "2024-11-13T23:27:21.190931",
  "HoursDown": 1.1,
  "ECDDownTimeID": 1,
  "Scheduled": true,
  "ActionTakenID": 1,
  "DataField0": "sample string 5",
  "DataField1": "sample string 6",
  "DataField2": "sample string 7",
  "DataField3": "sample string 8",
  "DataField4": "sample string 9",
  "DataField5": "sample string 10",
  "DataField6": "sample string 11",
  "DataField7": "sample string 12",
  "DataField8": "sample string 13",
  "DataField9": "sample string 14",
  "Stamp": "2024-11-13T23:27:21.190931",
  "Notes": "sample string 16",
  "InputByID": "sample string 17",
  "docSourceCode": 1
}

Response Information

Success Response

docEmissionControlDevices

application/json, text/json:
{
  "docIDEmissionControlDevices": 1,
  "ECDID": 2,
  "docDate": "2024-11-13T23:27:21.190931",
  "UserID": "sample string 4",
  "PipingOK": true,
  "ValvesOK": true,
  "OnLine": true,
  "PilotLit": true,
  "AutoIgniterOK": true,
  "AllVapor": true,
  "VisibleEmissions": true,
  "PriorDate": "2024-11-13T23:27:21.190931",
  "HoursDown": 1.1,
  "ECDDownTimeID": 1,
  "Scheduled": true,
  "ActionTakenID": 1,
  "DataField0": "sample string 5",
  "DataField1": "sample string 6",
  "DataField2": "sample string 7",
  "DataField3": "sample string 8",
  "DataField4": "sample string 9",
  "DataField5": "sample string 10",
  "DataField6": "sample string 11",
  "DataField7": "sample string 12",
  "DataField8": "sample string 13",
  "DataField9": "sample string 14",
  "Stamp": "2024-11-13T23:27:21.190931",
  "Notes": "sample string 16",
  "InputByID": "sample string 17",
  "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"
    }
  }
}