POST api/v2.0/Demographics/SetContactDemographic?demographicKey={demographicKey}
Returns a collection of all existing demographic categories
Request Information
URI Parameters
| Name | Description | Type | Additional information | 
|---|---|---|---|
| demographicKey | 
                         Unique Identifier for the Demographic Choice being added.  | 
                    globally unique identifier | 
                                 Required  | 
                
Body Parameters
None.
Response Information
Resource Description
ContactDemographic| Name | Description | Type | Additional information | 
|---|---|---|---|
| Choice | DemographicChoice | 
                             None.  | 
                
Response Formats
application/json, text/json
            Sample:
        
{
  "Choice": {
    "DemographicKey": "36925e1d-3f68-47b6-b9c6-d2a429192d75",
    "DemographicType": {
      "DemographicTypeKey": "9689ce6e-7dd1-46be-ab96-e155cff51c88",
      "Name": "sample string 2",
      "Description": "sample string 3",
      "IsNetwork": true,
      "IsFreeFormAllowed": true,
      "IsMultiSelect": true,
      "IsPerson": true,
      "ShowDescriptionInProfile": true
    },
    "Name": "sample string 2",
    "Description": "sample string 3"
  }
}
        application/xml, text/xml
            Sample:
<ContactDemographic xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/HigherLogic.API.Models.Enterprise.Demographics">
  <Choice>
    <DemographicKey>36925e1d-3f68-47b6-b9c6-d2a429192d75</DemographicKey>
    <DemographicType>
      <DemographicTypeKey>9689ce6e-7dd1-46be-ab96-e155cff51c88</DemographicTypeKey>
      <Description>sample string 3</Description>
      <IsFreeFormAllowed>true</IsFreeFormAllowed>
      <IsMultiSelect>true</IsMultiSelect>
      <IsNetwork>true</IsNetwork>
      <IsPerson>true</IsPerson>
      <Name>sample string 2</Name>
      <ShowDescriptionInProfile>true</ShowDescriptionInProfile>
    </DemographicType>
    <Description>sample string 3</Description>
    <Name>sample string 2</Name>
  </Choice>
</ContactDemographic>