PUT api/OrderItems

Request Information

URI Parameters

None.

Body Parameters

OrderItemsData
NameDescriptionTypeAdditional information
ID

integer

None.

OrderID

integer

None.

ProductID

integer

None.

ProductDescription

string

None.

Quantity

integer

None.

UnitPrice

decimal number

None.

Amount

decimal number

None.

Request Formats

application/json, text/json

Sample:
{
  "ID": 1,
  "OrderID": 2,
  "ProductID": 3,
  "ProductDescription": "sample string 4",
  "Quantity": 5,
  "UnitPrice": 6.0,
  "Amount": 7.0
}

text/xml

Sample:
<OrderItemsData xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/SAS.DAL">
  <Amount>7</Amount>
  <ID>1</ID>
  <OrderID>2</OrderID>
  <ProductDescription>sample string 4</ProductDescription>
  <ProductID>3</ProductID>
  <Quantity>5</Quantity>
  <UnitPrice>6</UnitPrice>
</OrderItemsData>

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

Response Information

Resource Description

HttpResponseMessage
NameDescriptionTypeAdditional information
Version

Version

None.

Content

HttpContent

None.

StatusCode

HttpStatusCode

None.

ReasonPhrase

string

None.

Headers

Collection of Object

None.

RequestMessage

HttpRequestMessage

None.

IsSuccessStatusCode

boolean

None.