Purpose Preferences
Get Purpose Preference
Use this API to retrieve a single Purpose Preference by its unique identifier along with details such as the Purpose Preference name, languages, number of options, created date, and updated date.
get/api/consentmanager/v1/custompreferences/{custompreferenceId}
Path parameters
custompreferenceIdstring uuid required
The UUID of the Custom Preference to be retrieved
Query parameters
includeTranslationsboolean
Parameter to include all of the Custom Preference's translations (by default is set to false)
Response
OK - Purpose Preference retrieved successfully.
Example response
{
"Id": "194e0d3b-0ba8-4bc7-b046-e3ae42b2bd25",
"Name": "Email Frequency",
"Description": "Options for different frequencies to receive emails",
"SelectionType": "SINGLE_CHOICE",
"DisplayAs": "BUTTONs",
"CreatedDate": "2023-01-15T10:52:30.974Z",
"UpdatedDate": "2023-01-15T10:55:30.974Z",
"NumberOfOptions": 4,
"NumberOfLanguages": 3,
"DefaultLanguage": "en-us",
"Options": [
{
"Id": "ca0fc41b-b28a-4335-804c-44d1f0f782ed",
"Label": "Weekly",
"Order": 1,
"IsDefault": true,
"CanDelete": true
}
],
"Languages": [
{
"Name": "Email Frequency",
"Description": "Options for different frequencies to receive emails",
"Language": "en-us",
"Default": true,
"Options": [
{
"Id": "ca0fc41b-b28a-4335-804c-44d1f0f782ed",
"Label": "Weekly",
"Order": 1,
"IsDefault": true,
"CanDelete": true
}
]
}
],
"Organizations": [
"712a1f61-a548-432f-afc4-5a383c28eeb2"
],
"TotalLinkedActivePurposes": 5
}