PUT api/OrderItems
Request Information
URI Parameters
None.
Body Parameters
OrderItemsData| Name | Description | Type | Additional 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:
Response Information
Resource Description
HttpResponseMessage| Name | Description | Type | Additional information |
|---|---|---|---|
| Version | Version |
None. |
|
| Content | HttpContent |
None. |
|
| StatusCode | HttpStatusCode |
None. |
|
| ReasonPhrase | string |
None. |
|
| Headers | Collection of Object |
None. |
|
| RequestMessage | HttpRequestMessage |
None. |
|
| IsSuccessStatusCode | boolean |
None. |