POST api/Product/UpdateProduct
Request Information
URI Parameters
None.
Body Parameters
M_Product| Name | Description | Type | Additional information |
|---|---|---|---|
| ID | integer |
None. |
|
| Place_ID | integer |
None. |
|
| ProductType_ID | string |
Required String length: inclusive between 0 and 50 |
|
| Product_Name | string |
Required String length: inclusive between 0 and 100 |
|
| PaymentType | string |
Required String length: inclusive between 0 and 50 |
|
| Price | decimal number |
None. |
|
| CreateBy | integer |
None. |
|
| CreateTime | date |
None. |
|
| UpdateBy | integer |
None. |
|
| UpdateTime | date |
None. |
|
| IsActive | boolean |
None. |
|
| IsDelete | boolean |
None. |
Request Formats
application/json, text/json
Sample:
{
"ID": 1,
"Place_ID": 2,
"ProductType_ID": "sample string 3",
"Product_Name": "sample string 4",
"PaymentType": "sample string 5",
"Price": 6.0,
"CreateBy": 7,
"CreateTime": "2025-12-11T21:26:56.533447+07:00",
"UpdateBy": 1,
"UpdateTime": "2025-12-11T21:26:56.533447+07:00",
"IsActive": true,
"IsDelete": true
}
application/xml, text/xml
Sample:
<M_Product xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ams_template.Models.DB"> <CreateBy>7</CreateBy> <CreateTime>2025-12-11T21:26:56.533447+07:00</CreateTime> <ID>1</ID> <IsActive>true</IsActive> <IsDelete>true</IsDelete> <PaymentType>sample string 5</PaymentType> <Place_ID>2</Place_ID> <Price>6</Price> <ProductType_ID>sample string 3</ProductType_ID> <Product_Name>sample string 4</Product_Name> <UpdateBy>1</UpdateBy> <UpdateTime>2025-12-11T21:26:56.533447+07:00</UpdateTime> </M_Product>
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.