POST api/Preferences/Save

No documentation available.

Request Information

Parameters

NameDescriptionAdditional information
value
No documentation available.

Define this parameter in the request body.

Request body formats

application/json, text/json

Sample:
{
  "VolunteerId": 1,
  "Notes": "sample string 2",
  "Preferences": [
    {
      "CommitteeId": 1,
      "CommitteeName": "sample string 2",
      "JobDescription": "sample string 3",
      "Year": 4,
      "OrderIndex": 5
    },
    {
      "CommitteeId": 1,
      "CommitteeName": "sample string 2",
      "JobDescription": "sample string 3",
      "Year": 4,
      "OrderIndex": 5
    },
    {
      "CommitteeId": 1,
      "CommitteeName": "sample string 2",
      "JobDescription": "sample string 3",
      "Year": 4,
      "OrderIndex": 5
    }
  ]
}

application/xml, text/xml

Sample:
<VolunteerPreferencesDTO xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/TSV.Core.DTO">
  <Notes>sample string 2</Notes>
  <Preferences>
    <CommitteePreferenceDTO>
      <CommitteeId>1</CommitteeId>
      <CommitteeName>sample string 2</CommitteeName>
      <JobDescription>sample string 3</JobDescription>
      <OrderIndex>5</OrderIndex>
      <Year>4</Year>
    </CommitteePreferenceDTO>
    <CommitteePreferenceDTO>
      <CommitteeId>1</CommitteeId>
      <CommitteeName>sample string 2</CommitteeName>
      <JobDescription>sample string 3</JobDescription>
      <OrderIndex>5</OrderIndex>
      <Year>4</Year>
    </CommitteePreferenceDTO>
    <CommitteePreferenceDTO>
      <CommitteeId>1</CommitteeId>
      <CommitteeName>sample string 2</CommitteeName>
      <JobDescription>sample string 3</JobDescription>
      <OrderIndex>5</OrderIndex>
      <Year>4</Year>
    </CommitteePreferenceDTO>
  </Preferences>
  <VolunteerId>1</VolunteerId>
</VolunteerPreferencesDTO>

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 'VolunteerPreferencesDTO'.