PUT api/OrderDetails
Updates an existing OrderDetails entity
Request Information
URI Parameters
None.
Body Parameters
OrderDetailsData| Name | Description | Type | Additional information |
|---|---|---|---|
| OrderID | integer |
None. |
|
| ProductID | integer |
None. |
|
| UnitPrice | decimal number |
None. |
|
| Quantity | integer |
None. |
|
| Discount | decimal number |
None. |
Request Formats
application/json, text/json
Sample:
{
"OrderID": 1,
"ProductID": 2,
"UnitPrice": 3.0,
"Quantity": 4,
"Discount": 5.1
}
text/xml
Sample:
<OrderDetailsData xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/NorthwindAPI.Models"> <Discount>5.1</Discount> <OrderID>1</OrderID> <ProductID>2</ProductID> <Quantity>4</Quantity> <UnitPrice>3</UnitPrice> </OrderDetailsData>
application/x-www-form-urlencoded
Sample:
Sample not available.
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. |