PUT register/Item

Request Information

URI Parameters

None.

Body Parameters

ItemUpdate
NameDescriptionTypeAdditional information
ItemID

string

None.

Name

string

None.

DepartmentID

string

None.

CategoryID

string

None.

Price

decimal number

None.

UsedPrice

decimal number

None.

UsedPrice2

decimal number

None.

TradeInPrice

decimal number

None.

TradeInPrice2

decimal number

None.

TradeInPriceCash

decimal number

None.

TradeInPriceCash2

decimal number

None.

RetailPrice

decimal number

None.

Cost

decimal number

None.

UsedCost

decimal number

None.

QuantityNew

decimal number

None.

QuantityUsed

decimal number

None.

Taxable1

boolean

None.

Taxable2

boolean

None.

Taxable3

boolean

None.

Request Formats

application/json, text/json

Sample:
{
  "ItemID": "sample string 1",
  "Name": "sample string 2",
  "DepartmentID": "sample string 3",
  "CategoryID": "sample string 4",
  "Price": 1.0,
  "UsedPrice": 1.0,
  "UsedPrice2": 1.0,
  "TradeInPrice": 1.0,
  "TradeInPrice2": 1.0,
  "TradeInPriceCash": 1.0,
  "TradeInPriceCash2": 1.0,
  "RetailPrice": 1.0,
  "Cost": 1.0,
  "UsedCost": 1.0,
  "QuantityNew": 1.0,
  "QuantityUsed": 1.0,
  "Taxable1": true,
  "Taxable2": true,
  "Taxable3": true
}

application/xml, text/xml

Sample:
<ItemUpdate xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/RegisterService.Models">
  <CategoryID>sample string 4</CategoryID>
  <Cost>1</Cost>
  <DepartmentID>sample string 3</DepartmentID>
  <ItemID>sample string 1</ItemID>
  <Name>sample string 2</Name>
  <Price>1</Price>
  <QuantityNew>1</QuantityNew>
  <QuantityUsed>1</QuantityUsed>
  <RetailPrice>1</RetailPrice>
  <Taxable1>true</Taxable1>
  <Taxable2>true</Taxable2>
  <Taxable3>true</Taxable3>
  <TradeInPrice>1</TradeInPrice>
  <TradeInPrice2>1</TradeInPrice2>
  <TradeInPriceCash>1</TradeInPriceCash>
  <TradeInPriceCash2>1</TradeInPriceCash2>
  <UsedCost>1</UsedCost>
  <UsedPrice>1</UsedPrice>
  <UsedPrice2>1</UsedPrice2>
</ItemUpdate>

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 'ItemUpdate'.

Response Information

Resource Description

JsonResultOfString
NameDescriptionTypeAdditional information
Content

string

None.

SerializerSettings

JsonSerializerSettings

None.

Encoding

Encoding

None.

Request

HttpRequestMessage

None.

Response Formats

application/json, text/json

Sample:

Sample not available.