GET api/v2.0/Demographics/GetDemographicChoices
Get the available Demographic choices.
Request Information
URI Parameters
None.
Body Parameters
None.
Response Information
Resource Description
A collection of all existing demographic choices.
Collection of 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": "a362f2c3-d3f9-4bbf-9341-820a89a0d2de",
"DemographicType": {
"DemographicTypeKey": "69b12c70-269c-45bc-a2b8-75edfa45d03f",
"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"
},
{
"DemographicKey": "a362f2c3-d3f9-4bbf-9341-820a89a0d2de",
"DemographicType": {
"DemographicTypeKey": "69b12c70-269c-45bc-a2b8-75edfa45d03f",
"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:
<ArrayOfDemographicChoice xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/HigherLogic.API.Models.Enterprise.Demographics">
<DemographicChoice>
<DemographicKey>a362f2c3-d3f9-4bbf-9341-820a89a0d2de</DemographicKey>
<DemographicType>
<DemographicTypeKey>69b12c70-269c-45bc-a2b8-75edfa45d03f</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>
<DemographicChoice>
<DemographicKey>a362f2c3-d3f9-4bbf-9341-820a89a0d2de</DemographicKey>
<DemographicType>
<DemographicTypeKey>69b12c70-269c-45bc-a2b8-75edfa45d03f</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>
</ArrayOfDemographicChoice>