POST api/Benefits/AddBenefitPackage
Adds benefit package to specified account
Request Information
URI Parameters
None.
Body Parameters
AddBenefitPackageRequestModel| Name | Description | Type | Additional information |
|---|---|---|---|
| BenefitPackageId |
ID of benefit pacakge to add |
integer |
None. |
| AccountCode |
Account code to add the package to |
string |
None. |
| BoatNo |
ID of boat to add the package to |
integer |
None. |
Request Formats
application/json, text/json
Sample:
{
"benefitPackageId": 1,
"accountCode": "sample string 2",
"boatNo": 1
}
multipart/form-data
Sample:
--MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="BenefitPackageId" 1 --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="AccountCode" sample string 2 --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="BoatNo" 1 --MultipartDataMediaFormatterBoundary1q2w3e--
Response Information
Resource Description
AddBenefitPackageRequestModel| Name | Description | Type | Additional information |
|---|---|---|---|
| BenefitPackageId |
ID of benefit pacakge to add |
integer |
None. |
| AccountCode |
Account code to add the package to |
string |
None. |
| BoatNo |
ID of boat to add the package to |
integer |
None. |
Response Formats
application/json, text/json
Sample:
{
"benefitPackageId": 1,
"accountCode": "sample string 2",
"boatNo": 1
}
multipart/form-data
Sample:
--MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="BenefitPackageId" 1 --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="AccountCode" sample string 2 --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="BoatNo" 1 --MultipartDataMediaFormatterBoundary1q2w3e--