POST api/v2.0/Demographics/AddDemographicChoice
Add a new demographic choice. Can only be accessed by an Admin user.
Request Information
URI Parameters
None.
Body Parameters
DemographicTypeKey: The DemographicTypeKey of the demographic category that this choice is associated with, Name: string, Description: string
DemographicChoiceRequest| Name | Description | Type | Additional information | 
|---|---|---|---|
| DemographicTypeKey | globally unique identifier | None. | |
| Name | string | None. | |
| Description | string | None. | 
Request Formats
application/json, text/json
            Sample:
        
{
  "DemographicTypeKey": "1ee44eb9-1b52-40e0-a862-db7577bd6ffc",
  "Name": "sample string 2",
  "Description": "sample string 3"
}
        application/xml, text/xml
            Sample:
<DemographicChoiceRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/HigherLogic.API.Models.Enterprise.Request"> <DemographicTypeKey>1ee44eb9-1b52-40e0-a862-db7577bd6ffc</DemographicTypeKey> <Description>sample string 3</Description> <Name>sample string 2</Name> </DemographicChoiceRequest>
Response Information
Resource Description
DemographicChoice| Name | Description | Type | Additional information | 
|---|---|---|---|
| DemographicKey | Unique key for the Demographic. | globally unique identifier | None. | 
| DemographicType | Associated Demographic Type. | DemographicType | None. | 
| Name | Name of the Demographic Choice | string | None. | 
| Description | Description of the Demographic Choice | string | None. | 
Response Formats
application/json, text/json
            Sample:
        
{
  "DemographicKey": "10591133-ed90-43b6-bad7-06452a208066",
  "DemographicType": {
    "DemographicTypeKey": "bc8f9ed7-52bd-45d4-9896-4ac1d362fada",
    "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:
<DemographicChoice xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/HigherLogic.API.Models.Enterprise.Demographics">
  <DemographicKey>10591133-ed90-43b6-bad7-06452a208066</DemographicKey>
  <DemographicType>
    <DemographicTypeKey>bc8f9ed7-52bd-45d4-9896-4ac1d362fada</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>
</DemographicChoice>