POST api/SaveIncomeSurveyOtherBenefit

Request Information

URI Parameters

None.

Body Parameters

Collection of IncomeSurveyOtherBenefitRequest
NameDescriptionTypeAdditional information
SurveyId

integer

None.

OtherBenefitId

integer

None.

HasBenefit

boolean

None.

IsActive

boolean

None.

Request Formats

application/json, text/json

Sample:
[
  {
    "SurveyId": 1,
    "OtherBenefitId": 2,
    "HasBenefit": true,
    "IsActive": true
  },
  {
    "SurveyId": 1,
    "OtherBenefitId": 2,
    "HasBenefit": true,
    "IsActive": true
  }
]

application/xml, text/xml

Sample:
<ArrayOfIncomeSurveyOtherBenefitRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Cybersoft.Primero.OnlineFRE.APIs.Models.IncomeSurveys">
  <IncomeSurveyOtherBenefitRequest>
    <HasBenefit>true</HasBenefit>
    <IsActive>true</IsActive>
    <OtherBenefitId>2</OtherBenefitId>
    <SurveyId>1</SurveyId>
  </IncomeSurveyOtherBenefitRequest>
  <IncomeSurveyOtherBenefitRequest>
    <HasBenefit>true</HasBenefit>
    <IsActive>true</IsActive>
    <OtherBenefitId>2</OtherBenefitId>
    <SurveyId>1</SurveyId>
  </IncomeSurveyOtherBenefitRequest>
</ArrayOfIncomeSurveyOtherBenefitRequest>

application/x-www-form-urlencoded

Sample:

Failed to generate the sample for media type 'application/x-www-form-urlencoded'. Cannot use formatter 'JQueryMvcFormUrlEncodedFormatter' to write type 'List`1'.

Response Information

Resource Description

boolean

Response Formats

application/json, text/json

Sample:
true

application/xml, text/xml

Sample:
<boolean xmlns="http://schemas.microsoft.com/2003/10/Serialization/">true</boolean>