PUT api/drinksales/{id}
Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| id | integer |
Required |
Body Parameters
DrinkSale| Name | Description | Type | Additional information |
|---|---|---|---|
| SaleID | integer |
None. |
|
| CustomerName | string |
None. |
|
| DrinkSize | string |
None. |
|
| Quantity | integer |
None. |
|
| SmallQty | integer |
None. |
|
| LargeQty | integer |
None. |
|
| PricePerPack | decimal number |
None. |
|
| SaleDate | date |
None. |
|
| PaymentStatus | boolean |
None. |
Request Formats
application/json, text/json
Sample:
{
"SaleID": 1,
"CustomerName": "sample string 2",
"DrinkSize": "sample string 3",
"Quantity": 1,
"SmallQty": 1,
"LargeQty": 1,
"PricePerPack": 1.0,
"SaleDate": "2026-01-24T14:31:16.5975628-06:00",
"PaymentStatus": true
}
application/xml, text/xml
Sample:
<DrinkSale xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/WebApi.Models"> <CustomerName>sample string 2</CustomerName> <DrinkSize>sample string 3</DrinkSize> <LargeQty>1</LargeQty> <PaymentStatus>true</PaymentStatus> <PricePerPack>1</PricePerPack> <Quantity>1</Quantity> <SaleDate>2026-01-24T14:31:16.5975628-06:00</SaleDate> <SaleID>1</SaleID> <SmallQty>1</SmallQty> </DrinkSale>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
IHttpActionResultNone.
Response Formats
application/json, text/json, application/xml, text/xml
Sample:
Sample not available.