PUT api/chgServiceCode/{id}

Update an existing record from the ServiceCodes table.

Request Information

URI Parameters

NameDescriptionTypeAdditional information
id

integer

Required

Body Parameters

chgServiceCodeDb
NameDescriptionTypeAdditional information
ServiceCodeID

integer

None.

ServiceCode

integer

Required

ServiceName

string

Required

Max length: 40

ServiceUnit

string

Required

Max length: 2

ServiceCharge

decimal number

Required

ServiceIsCostBased

boolean

None.

ServiceCostMarkup

decimal number

None.

ServiceDescription

string

None.

ServiceProcessCode

string

Max length: 1

ExternalReference

string

Max length: 30

ManualShipment

boolean

None.

ManualShipmentByPallet

boolean

None.

IsActive

boolean

None.

CreatedBy

integer

None.

CreatedDate

date

None.

UpdatedBy

integer

None.

UpdatedDate

date

None.

results

Collection of ValidationResult

None.

Request Formats

application/json, text/json

Sample:
{
  "results": null,
  "ServiceCodeID": 1,
  "ServiceCode": 2,
  "ServiceName": "sample string 3",
  "ServiceUnit": "sample string 4",
  "ServiceCharge": 5.0,
  "ServiceIsCostBased": true,
  "ServiceCostMarkup": 1.0,
  "ServiceDescription": "sample string 6",
  "ServiceProcessCode": "sample string 7",
  "ExternalReference": "sample string 8",
  "ManualShipment": true,
  "ManualShipmentByPallet": true,
  "IsActive": true,
  "CreatedBy": 12,
  "CreatedDate": "2025-12-06T23:37:49.9133295+00:00",
  "UpdatedBy": 14,
  "UpdatedDate": "2025-12-06T23:37:49.9133295+00:00"
}

application/xml, text/xml

Sample:
<chgServiceCodeDb xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/WebAPI.Data.Tables">
  <results xmlns:d2p1="http://schemas.datacontract.org/2004/07/System.ComponentModel.DataAnnotations" i:nil="true" xmlns="http://schemas.datacontract.org/2004/07/WebAPI.Data.Utility" />
  <CreatedBy>12</CreatedBy>
  <CreatedDate xmlns:d2p1="http://schemas.datacontract.org/2004/07/System">
    <d2p1:DateTime>2025-12-06T23:37:49.9133295Z</d2p1:DateTime>
    <d2p1:OffsetMinutes>0</d2p1:OffsetMinutes>
  </CreatedDate>
  <ExternalReference>sample string 8</ExternalReference>
  <IsActive>true</IsActive>
  <ManualShipment>true</ManualShipment>
  <ManualShipmentByPallet>true</ManualShipmentByPallet>
  <ServiceCharge>5</ServiceCharge>
  <ServiceCode>2</ServiceCode>
  <ServiceCodeID>1</ServiceCodeID>
  <ServiceCostMarkup>1</ServiceCostMarkup>
  <ServiceDescription>sample string 6</ServiceDescription>
  <ServiceIsCostBased>true</ServiceIsCostBased>
  <ServiceName>sample string 3</ServiceName>
  <ServiceProcessCode>sample string 7</ServiceProcessCode>
  <ServiceUnit>sample string 4</ServiceUnit>
  <UpdatedBy>14</UpdatedBy>
  <UpdatedDate xmlns:d2p1="http://schemas.datacontract.org/2004/07/System">
    <d2p1:DateTime>2025-12-06T23:37:49.9133295Z</d2p1:DateTime>
    <d2p1:OffsetMinutes>0</d2p1:OffsetMinutes>
  </UpdatedDate>
</chgServiceCodeDb>

application/x-www-form-urlencoded

Sample:

Failed to generate the sample for media type 'application/x-www-form-urlencoded'. Cannot use formatter 'JQueryMvcFormUrlEncodedFormatter' to write type 'chgServiceCodeDb'.

Response Information

Resource Description

UpsertRetOfchgServiceCodeDb
NameDescriptionTypeAdditional information
returnID

integer

None.

results

Collection of ValidationResult

None.

returnItem

chgServiceCodeDb

None.

displayMessage

string

None.

Response Formats

application/json, text/json

Sample:
{
  "returnID": 1,
  "results": null,
  "returnItem": {
    "results": null,
    "ServiceCodeID": 1,
    "ServiceCode": 2,
    "ServiceName": "sample string 3",
    "ServiceUnit": "sample string 4",
    "ServiceCharge": 5.0,
    "ServiceIsCostBased": true,
    "ServiceCostMarkup": 1.0,
    "ServiceDescription": "sample string 6",
    "ServiceProcessCode": "sample string 7",
    "ExternalReference": "sample string 8",
    "ManualShipment": true,
    "ManualShipmentByPallet": true,
    "IsActive": true,
    "CreatedBy": 12,
    "CreatedDate": "2025-12-06T23:37:49.9133295+00:00",
    "UpdatedBy": 14,
    "UpdatedDate": "2025-12-06T23:37:49.9133295+00:00"
  },
  "displayMessage": "sample string 1"
}

application/xml, text/xml

Sample:
<UpsertRetOfchgServiceCodeDb66KPc_SrH xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/WebAPI.Data.Utility">
  <displayMessage>sample string 1</displayMessage>
  <results xmlns:d2p1="http://schemas.datacontract.org/2004/07/System.ComponentModel.DataAnnotations" i:nil="true" />
  <returnID>1</returnID>
  <returnItem xmlns:d2p1="http://schemas.datacontract.org/2004/07/WebAPI.Data.Tables">
    <results xmlns:d3p1="http://schemas.datacontract.org/2004/07/System.ComponentModel.DataAnnotations" i:nil="true" />
    <d2p1:CreatedBy>12</d2p1:CreatedBy>
    <d2p1:CreatedDate xmlns:d3p1="http://schemas.datacontract.org/2004/07/System">
      <d3p1:DateTime>2025-12-06T23:37:49.9133295Z</d3p1:DateTime>
      <d3p1:OffsetMinutes>0</d3p1:OffsetMinutes>
    </d2p1:CreatedDate>
    <d2p1:ExternalReference>sample string 8</d2p1:ExternalReference>
    <d2p1:IsActive>true</d2p1:IsActive>
    <d2p1:ManualShipment>true</d2p1:ManualShipment>
    <d2p1:ManualShipmentByPallet>true</d2p1:ManualShipmentByPallet>
    <d2p1:ServiceCharge>5</d2p1:ServiceCharge>
    <d2p1:ServiceCode>2</d2p1:ServiceCode>
    <d2p1:ServiceCodeID>1</d2p1:ServiceCodeID>
    <d2p1:ServiceCostMarkup>1</d2p1:ServiceCostMarkup>
    <d2p1:ServiceDescription>sample string 6</d2p1:ServiceDescription>
    <d2p1:ServiceIsCostBased>true</d2p1:ServiceIsCostBased>
    <d2p1:ServiceName>sample string 3</d2p1:ServiceName>
    <d2p1:ServiceProcessCode>sample string 7</d2p1:ServiceProcessCode>
    <d2p1:ServiceUnit>sample string 4</d2p1:ServiceUnit>
    <d2p1:UpdatedBy>14</d2p1:UpdatedBy>
    <d2p1:UpdatedDate xmlns:d3p1="http://schemas.datacontract.org/2004/07/System">
      <d3p1:DateTime>2025-12-06T23:37:49.9133295Z</d3p1:DateTime>
      <d3p1:OffsetMinutes>0</d3p1:OffsetMinutes>
    </d2p1:UpdatedDate>
  </returnItem>
</UpsertRetOfchgServiceCodeDb66KPc_SrH>