POST api/productyield/saveall
Request Information
URI Parameters
None.
Body Parameters
SaveAllYieldsRequest| Name | Description | Type | Additional information |
|---|---|---|---|
| BranchID | integer |
None. |
|
| FinancialYearID | integer |
None. |
|
| YieldData | Collection of YieldItem |
None. |
Request Formats
application/json, text/json
Sample:
{
"BranchID": 1,
"FinancialYearID": 2,
"YieldData": [
{
"ProductID": 1,
"YieldPercentage": 2.0
},
{
"ProductID": 1,
"YieldPercentage": 2.0
}
]
}
application/xml, text/xml
Sample:
<SaveAllYieldsRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/CrushMateBackendAPI.Controllers">
<BranchID>1</BranchID>
<FinancialYearID>2</FinancialYearID>
<YieldData>
<YieldItem>
<ProductID>1</ProductID>
<YieldPercentage>2</YieldPercentage>
</YieldItem>
<YieldItem>
<ProductID>1</ProductID>
<YieldPercentage>2</YieldPercentage>
</YieldItem>
</YieldData>
</SaveAllYieldsRequest>
application/x-www-form-urlencoded
Sample:
Response Information
Resource Description
IHttpActionResultNone.
Response Formats
application/json, text/json, application/xml, text/xml
Sample:
Sample not available.