POST api/Definations/InsertDamageChart?vUserID={vUserID}&IsOpen={IsOpen}&vCropID={vCropID}&vComodityID={vComodityID}
Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| vUserID | integer |
Required |
|
| IsOpen | boolean |
Required |
|
| vCropID | integer |
Required |
|
| vComodityID | integer |
Required |
Body Parameters
Collection of DamageChart| Name | Description | Type | Additional information |
|---|---|---|---|
| SerialNo | integer |
None. |
|
| CropID | integer |
None. |
|
| Commodity | integer |
None. |
|
| DamagePercentage | decimal number |
None. |
|
| Ranges | decimal number |
None. |
|
| Condition | string |
None. |
|
| PurVal | decimal number |
None. |
Request Formats
application/json, text/json
Sample:
[
{
"SerialNo": 1,
"CropID": 2,
"Commodity": 3,
"DamagePercentage": 4.0,
"Ranges": 5.0,
"Condition": "sample string 6",
"PurVal": 7.0
},
{
"SerialNo": 1,
"CropID": 2,
"Commodity": 3,
"DamagePercentage": 4.0,
"Ranges": 5.0,
"Condition": "sample string 6",
"PurVal": 7.0
}
]
application/xml, text/xml
Sample:
<ArrayOfDamageChart xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/RiceMillsERP_API.Models">
<DamageChart>
<Commodity>3</Commodity>
<Condition>sample string 6</Condition>
<CropID>2</CropID>
<DamagePercentage>4</DamagePercentage>
<PurVal>7</PurVal>
<Ranges>5</Ranges>
<SerialNo>1</SerialNo>
</DamageChart>
<DamageChart>
<Commodity>3</Commodity>
<Condition>sample string 6</Condition>
<CropID>2</CropID>
<DamagePercentage>4</DamagePercentage>
<PurVal>7</PurVal>
<Ranges>5</Ranges>
<SerialNo>1</SerialNo>
</DamageChart>
</ArrayOfDamageChart>
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. |