POST fruitsapi/saveorupdateproduct?preFix={preFix}
Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| preFix | string |
Required |
Body Parameters
UpdateProduct| Name | Description | Type | Additional information |
|---|---|---|---|
| ProdId | integer |
None. |
|
| ProName | string |
None. |
|
| ProshrName | string |
None. |
|
| Category | string |
None. |
|
| SubCategory | string |
None. |
|
| Unit | string |
None. |
|
| Mrp | decimal number |
None. |
|
| CostRate | decimal number |
None. |
|
| SelRate | decimal number |
None. |
|
| Stax | decimal number |
None. |
|
| SaldisPer | integer |
None. |
|
| MiniQty | decimal number |
None. |
|
| Hsncode | string |
None. |
|
| Online | string |
None. |
|
| ImgPath | string |
None. |
Request Formats
application/json, text/json
Sample:
{
"ProdId": 1,
"ProName": "sample string 2",
"ProshrName": "sample string 3",
"Category": "sample string 4",
"SubCategory": "sample string 5",
"Unit": "sample string 6",
"Mrp": 7.0,
"CostRate": 8.0,
"SelRate": 9.0,
"Stax": 10.0,
"SaldisPer": 11,
"MiniQty": 12.0,
"Hsncode": "sample string 13",
"Online": "sample string 14",
"ImgPath": "sample string 15"
}
text/html
Sample:
{"ProdId":1,"ProName":"sample string 2","ProshrName":"sample string 3","Category":"sample string 4","SubCategory":"sample string 5","Unit":"sample string 6","Mrp":7.0,"CostRate":8.0,"SelRate":9.0,"Stax":10.0,"SaldisPer":11,"MiniQty":12.0,"Hsncode":"sample string 13","Online":"sample string 14","ImgPath":"sample string 15"}
application/xml, text/xml
Sample:
<UpdateProduct xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/FruitsApi.Models"> <Category>sample string 4</Category> <CostRate>8</CostRate> <Hsncode>sample string 13</Hsncode> <ImgPath>sample string 15</ImgPath> <MiniQty>12</MiniQty> <Mrp>7</Mrp> <Online>sample string 14</Online> <ProName>sample string 2</ProName> <ProdId>1</ProdId> <ProshrName>sample string 3</ProshrName> <SaldisPer>11</SaldisPer> <SelRate>9</SelRate> <Stax>10</Stax> <SubCategory>sample string 5</SubCategory> <Unit>sample string 6</Unit> </UpdateProduct>
application/x-www-form-urlencoded
Sample:
Response Information
Resource Description
IHttpActionResultNone.
Response Formats
application/json, text/json, text/html, application/xml, text/xml
Sample:
Sample not available.