POST api/products/UpdateProducts
Request Information
URI Parameters
None.
Body Parameters
ProductsDTO| Name | Description | Type | Additional information |
|---|---|---|---|
| id | integer |
None. |
|
| name | string |
None. |
|
| description | string |
None. |
|
| price | decimal number |
None. |
|
| categoryId | integer |
None. |
|
| category | string |
None. |
|
| imageUrl | string |
None. |
|
| stockQuantity | integer |
None. |
|
| rating | decimal number |
None. |
|
| createdAt | date |
None. |
|
| updatedAt | date |
None. |
|
| specificationsjson | string |
None. |
|
| isPublished | boolean |
None. |
|
| isEnabled | boolean |
None. |
|
| isDeleted | boolean |
None. |
Request Formats
application/json, text/json
Sample:
{
"id": 1,
"name": "sample string 2",
"description": "sample string 3",
"price": 4.0,
"categoryId": 5,
"category": "sample string 6",
"imageUrl": "sample string 7",
"stockQuantity": 8,
"rating": 1.0,
"createdAt": "2025-12-17T10:15:57.141681+03:00",
"updatedAt": "2025-12-17T10:15:57.1426805+03:00",
"specificationsjson": "sample string 9",
"isPublished": true,
"isEnabled": true,
"isDeleted": true
}
application/xml, text/xml
Sample:
<ProductsDTO xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/cbox.Models.DTOs"> <Category>sample string 6</Category> <CategoryID>5</CategoryID> <CreatedAt>2025-12-17T10:15:57.141681+03:00</CreatedAt> <Description>sample string 3</Description> <ID>1</ID> <ImageUrl>sample string 7</ImageUrl> <IsDeleted>true</IsDeleted> <IsEnabled>true</IsEnabled> <IsPublished>true</IsPublished> <Name>sample string 2</Name> <Price>4</Price> <Rating>1</Rating> <SpecificationsJson>sample string 9</SpecificationsJson> <StockQuantity>8</StockQuantity> <UpdatedAt>2025-12-17T10:15:57.1426805+03:00</UpdatedAt> </ProductsDTO>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
ResponseModelOfProductsDTO| Name | Description | Type | Additional information |
|---|---|---|---|
| data | ProductsDTO |
None. |
|
| success | boolean |
None. |
|
| statusCode | integer |
None. |
|
| message | string |
None. |
|
| errorMessage | string |
None. |
|
| metadata | Object |
None. |
Response Formats
application/json, text/json
Sample:
{
"data": {
"id": 1,
"name": "sample string 2",
"description": "sample string 3",
"price": 4.0,
"categoryId": 5,
"category": "sample string 6",
"imageUrl": "sample string 7",
"stockQuantity": 8,
"rating": 1.0,
"createdAt": "2025-12-17T10:15:57.1716721+03:00",
"updatedAt": "2025-12-17T10:15:57.1716721+03:00",
"specificationsjson": "sample string 9",
"isPublished": true,
"isEnabled": true,
"isDeleted": true
},
"success": true,
"statusCode": 2,
"message": "sample string 3",
"errorMessage": "sample string 4",
"metadata": {}
}
application/xml, text/xml
Sample:
<ResponseModelOfProductsDTOqOm1f5oC xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/cbox.Models.Response">
<ErrorMessage>sample string 4</ErrorMessage>
<Message>sample string 3</Message>
<Metadata />
<StatusCode>2</StatusCode>
<Success>true</Success>
<Data xmlns:d2p1="http://schemas.datacontract.org/2004/07/cbox.Models.DTOs">
<d2p1:Category>sample string 6</d2p1:Category>
<d2p1:CategoryID>5</d2p1:CategoryID>
<d2p1:CreatedAt>2025-12-17T10:15:57.1716721+03:00</d2p1:CreatedAt>
<d2p1:Description>sample string 3</d2p1:Description>
<d2p1:ID>1</d2p1:ID>
<d2p1:ImageUrl>sample string 7</d2p1:ImageUrl>
<d2p1:IsDeleted>true</d2p1:IsDeleted>
<d2p1:IsEnabled>true</d2p1:IsEnabled>
<d2p1:IsPublished>true</d2p1:IsPublished>
<d2p1:Name>sample string 2</d2p1:Name>
<d2p1:Price>4</d2p1:Price>
<d2p1:Rating>1</d2p1:Rating>
<d2p1:SpecificationsJson>sample string 9</d2p1:SpecificationsJson>
<d2p1:StockQuantity>8</d2p1:StockQuantity>
<d2p1:UpdatedAt>2025-12-17T10:15:57.1716721+03:00</d2p1:UpdatedAt>
</Data>
</ResponseModelOfProductsDTOqOm1f5oC>