PUT OData/CorpPurchasers({CorpPurchaserID})

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 e7de6bbc-f17d-42cb-88e2-b91f2d149504

URI Parameters

Name Description Type Additional information
key

The key of the entity to update

integer

Required

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

Body Parameters

The updates to be applied to the entity

CorpPurchaser

application/json, text/json:
{
  "CorpPurchaserID": 1,
  "CorpID": 2,
  "CorpPurchaserName": "sample string 3",
  "Email": "sample string 4",
  "PhoneNumber": "sample string 5",
  "PhoneExt": "sample string 6",
  "CreatedDate": "2024-11-13T23:27:24.3433164",
  "CreatedBy": "sample string 8",
  "ModifiedDate": "2024-11-13T23:27:24.3433164",
  "ModifiedBy": "sample string 10"
}

Response Information

Success Response

CorpPurchaser

application/json, text/json:
{
  "CorpPurchaserID": 1,
  "CorpID": 2,
  "CorpPurchaserName": "sample string 3",
  "Email": "sample string 4",
  "PhoneNumber": "sample string 5",
  "PhoneExt": "sample string 6",
  "CreatedDate": "2024-11-13T23:27:24.3433164",
  "CreatedBy": "sample string 8",
  "ModifiedDate": "2024-11-13T23:27:24.3433164",
  "ModifiedBy": "sample string 10"
}

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"
    }
  }
}