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
Name | Description | Type | Additional 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
FreeFormDemographicName | Description | Type | Additional 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": "58783449-e1da-412d-ad53-62712da0313f", "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>58783449-e1da-412d-ad53-62712da0313f</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>