PUT api/Products
Updates an existing Products entity
Request Information
URI Parameters
None.
Body Parameters
ProductsData object
ProductsData| Name | Description | Type | Additional information |
|---|---|---|---|
| ProductID | integer |
None. |
|
| DepartmentID | integer |
None. |
|
| Title | string |
None. |
|
| Description | string |
None. |
|
| SKU | string |
None. |
|
| UnitPrice | decimal number |
None. |
|
| DiscountPercentage | integer |
None. |
|
| UnitsInStock | integer |
None. |
|
| SmallImageUrl | string |
None. |
|
| FullImageUrl | string |
None. |
|
| Votes | integer |
None. |
|
| TotalRating | integer |
None. |
|
| AddedDate | date |
None. |
|
| AddedBy | string |
None. |
|
| Active | boolean |
None. |
Request Formats
application/json, text/json
Sample:
{
"ProductID": 1,
"DepartmentID": 2,
"Title": "sample string 3",
"Description": "sample string 4",
"SKU": "sample string 5",
"UnitPrice": 6.0,
"DiscountPercentage": 7,
"UnitsInStock": 8,
"SmallImageUrl": "sample string 9",
"FullImageUrl": "sample string 10",
"Votes": 11,
"TotalRating": 12,
"AddedDate": "2026-01-18T14:42:11.1901336-08:00",
"AddedBy": "sample string 13",
"Active": true
}
text/xml
Sample:
<ProductsData xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/CodeBhagat.DAL"> <Active>true</Active> <AddedBy>sample string 13</AddedBy> <AddedDate>2026-01-18T14:42:11.1901336-08:00</AddedDate> <DepartmentID>2</DepartmentID> <Description>sample string 4</Description> <DiscountPercentage>7</DiscountPercentage> <FullImageUrl>sample string 10</FullImageUrl> <ProductID>1</ProductID> <SKU>sample string 5</SKU> <SmallImageUrl>sample string 9</SmallImageUrl> <Title>sample string 3</Title> <TotalRating>12</TotalRating> <UnitPrice>6</UnitPrice> <UnitsInStock>8</UnitsInStock> <Votes>11</Votes> </ProductsData>
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. |