POST api/v2.0/Demographics/SetFreeFormContactDemographic?demographicTypeKey={demographicTypeKey}&freeFormText={freeFormText}

Update an existing Free-Form Demographic entry or add a new one.

Request Information

URI Parameters

NameDescriptionTypeAdditional information
demographicTypeKey

Unique Identifier for the Demographic Type to add/update.

globally unique identifier

Required

freeFormText

Free-Form text to store as the Demographic value.

string

Required

Body Parameters

None.

Response Information

Resource Description

FreeFormDemographic
NameDescriptionTypeAdditional information
DemographicType

Demographic Type.

DemographicType

None.

FreeFormText

Value of the Free-Form Text Demographic.

string

None.

Response Formats

application/json, text/json

Sample:
{
  "DemographicType": {
    "DemographicTypeKey": "8b0afc87-cebe-4c67-8652-a1881f9cbec5",
    "Name": "sample string 2",
    "Description": "sample string 3",
    "IsNetwork": true,
    "IsFreeFormAllowed": true,
    "IsMultiSelect": true,
    "IsPerson": true,
    "ShowDescriptionInProfile": true
  },
  "FreeFormText": "sample string 1"
}

application/xml, text/xml

Sample:
<FreeFormDemographic xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/HigherLogic.API.Models.Enterprise.Demographics">
  <DemographicType>
    <DemographicTypeKey>8b0afc87-cebe-4c67-8652-a1881f9cbec5</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>
  <FreeFormText>sample string 1</FreeFormText>
</FreeFormDemographic>