POST api/PreferenceCenter/GetPreferences

Use to fetch Preferences data

Request Information

URI Parameters

None.

Body Parameters

PreferenceCenterDO
NameDescriptionTypeAdditional information
country

string

None.

token

string

None.

Request Formats

application/json, text/json

Sample:
{
  "country": "sample string 1",
  "token": "sample string 2"
}

text/xml

Sample:
<PreferenceCenterDO xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/RandstadWebAPI.Models.DTO">
  <country>sample string 1</country>
  <token>sample string 2</token>
</PreferenceCenterDO>

multipart/form-data

Sample:
<PreferenceCenterDO xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/RandstadWebAPI.Models.DTO"><country>sample string 1</country><token>sample string 2</token></PreferenceCenterDO>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

CandidateNotificationPreferenceGroup
NameDescriptionTypeAdditional information
Title

string

None.

listCandidateNotificationPreferences

Collection of CandidateNotificationPreference

None.

Response Formats

application/json, text/json

Sample:
{
  "Title": "sample string 1",
  "listCandidateNotificationPreferences": [
    {
      "OptIn": true,
      "PreferenceTypeCode": "sample string 2",
      "PreferenceTypeDescription": "sample string 3",
      "PreferenceTypeName": "sample string 4"
    },
    {
      "OptIn": true,
      "PreferenceTypeCode": "sample string 2",
      "PreferenceTypeDescription": "sample string 3",
      "PreferenceTypeName": "sample string 4"
    }
  ]
}

text/xml

Sample:
<CandidateNotificationPreferenceGroup xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/EmployeeBusinessLayer.DataContracts">
  <Title>sample string 1</Title>
  <listCandidateNotificationPreferences>
    <CandidateNotificationPreference>
      <OptIn>true</OptIn>
      <PreferenceTypeCode>sample string 2</PreferenceTypeCode>
      <PreferenceTypeDescription>sample string 3</PreferenceTypeDescription>
      <PreferenceTypeName>sample string 4</PreferenceTypeName>
    </CandidateNotificationPreference>
    <CandidateNotificationPreference>
      <OptIn>true</OptIn>
      <PreferenceTypeCode>sample string 2</PreferenceTypeCode>
      <PreferenceTypeDescription>sample string 3</PreferenceTypeDescription>
      <PreferenceTypeName>sample string 4</PreferenceTypeName>
    </CandidateNotificationPreference>
  </listCandidateNotificationPreferences>
</CandidateNotificationPreferenceGroup>

multipart/form-data

Sample:
<CandidateNotificationPreferenceGroup xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/EmployeeBusinessLayer.DataContracts"><Title>sample string 1</Title><listCandidateNotificationPreferences><CandidateNotificationPreference><OptIn>true</OptIn><PreferenceTypeCode>sample string 2</PreferenceTypeCode><PreferenceTypeDescription>sample string 3</PreferenceTypeDescription><PreferenceTypeName>sample string 4</PreferenceTypeName></CandidateNotificationPreference><CandidateNotificationPreference><OptIn>true</OptIn><PreferenceTypeCode>sample string 2</PreferenceTypeCode><PreferenceTypeDescription>sample string 3</PreferenceTypeDescription><PreferenceTypeName>sample string 4</PreferenceTypeName></CandidateNotificationPreference></listCandidateNotificationPreferences></CandidateNotificationPreferenceGroup>