POST API/JobTrak/UpdateTradeAssetProperty

Update a collection of trade asset's associated property by property code

Request Information

URI Parameters

None.

Body Parameters

Trade asset property collection

Collection of TradeAssetProperty
NameDescriptionTypeAdditional information
WasteCustomerAssetID

Unique Identifier (used in trade import and updater)

integer

None.

PropertyCode

Property code of associated property

string

None.

Request Formats

application/json, text/json

Sample:
[
  {
    "WasteCustomerAssetID": 1,
    "PropertyCode": "sample string 2"
  },
  {
    "WasteCustomerAssetID": 1,
    "PropertyCode": "sample string 2"
  }
]

application/xml, text/xml

Sample:
<ArrayOfTradeAssetProperty xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
  <TradeAssetProperty>
    <WasteCustomerAssetID>1</WasteCustomerAssetID>
    <PropertyCode>sample string 2</PropertyCode>
  </TradeAssetProperty>
  <TradeAssetProperty>
    <WasteCustomerAssetID>1</WasteCustomerAssetID>
    <PropertyCode>sample string 2</PropertyCode>
  </TradeAssetProperty>
</ArrayOfTradeAssetProperty>

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 'TradeAssetProperty[]'.

Response Information

Resource Description

Response from server

IHttpActionResult

None.

Response Formats

application/json, text/json

Sample:

Sample not available.