POST api/products/insert
Request Information
URI Parameters
None.
Body Parameters
Products| Name | Description | Type | Additional information |
|---|---|---|---|
| Prodid | integer |
None. |
|
| CategID | integer |
None. |
|
| BrandID | integer |
None. |
|
| Compid | integer |
None. |
|
| ProdName | string |
None. |
|
| MRP | decimal number |
None. |
|
| Dis | decimal number |
None. |
|
| Rates | decimal number |
None. |
|
| OpStocks | decimal number |
None. |
|
| ImageUrls | string |
None. |
|
| HSNCODE | string |
None. |
|
| GSTP | decimal number |
None. |
|
| IsActive | boolean |
None. |
|
| MiniStock | decimal number |
None. |
|
| FinalPrice | decimal number |
None. |
|
| Distype | string |
None. |
|
| WG | string |
None. |
|
| Points | integer |
None. |
|
| CategoryName | string |
None. |
|
| BrandName | string |
None. |
Request Formats
application/json, text/json
Sample:
{
"Prodid": 1,
"CategID": 2,
"BrandID": 3,
"Compid": 4,
"ProdName": "sample string 5",
"MRP": 6.0,
"Dis": 7.0,
"Rates": 8.0,
"OpStocks": 9.0,
"ImageUrls": "sample string 10",
"HSNCODE": "sample string 11",
"GSTP": 12.0,
"IsActive": true,
"MiniStock": 14.0,
"FinalPrice": 15.0,
"Distype": "sample string 16",
"WG": "sample string 17",
"Points": 18,
"CategoryName": "sample string 19",
"BrandName": "sample string 20"
}
text/html
Sample:
{"Prodid":1,"CategID":2,"BrandID":3,"Compid":4,"ProdName":"sample string 5","MRP":6.0,"Dis":7.0,"Rates":8.0,"OpStocks":9.0,"ImageUrls":"sample string 10","HSNCODE":"sample string 11","GSTP":12.0,"IsActive":true,"MiniStock":14.0,"FinalPrice":15.0,"Distype":"sample string 16","WG":"sample string 17","Points":18,"CategoryName":"sample string 19","BrandName":"sample string 20"}
application/xml, text/xml
Sample:
<Products xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/KeyCodeWebsApis.Models"> <BrandID>3</BrandID> <BrandName>sample string 20</BrandName> <CategID>2</CategID> <CategoryName>sample string 19</CategoryName> <Compid>4</Compid> <Dis>7</Dis> <Distype>sample string 16</Distype> <FinalPrice>15</FinalPrice> <GSTP>12</GSTP> <HSNCODE>sample string 11</HSNCODE> <ImageUrls>sample string 10</ImageUrls> <IsActive>true</IsActive> <MRP>6</MRP> <MiniStock>14</MiniStock> <OpStocks>9</OpStocks> <Points>18</Points> <ProdName>sample string 5</ProdName> <Prodid>1</Prodid> <Rates>8</Rates> <WG>sample string 17</WG> </Products>
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. |