post https://{region}-api.dotdigital.com/v2/preferences
Creates a new preference or a new preference category
This operation creates either a new preference or a new preference category.
- Preferences that are inside the same category must have unique private names
- Uncategorised preferences must have unique private names
- All categories must have unique private names
- Preferences and categories can have the same public names
Creating a preference outside of a category
- Set the value of the
isPreference
totrue
- Set the value of the
CategoryId
tonull
Creating a preference inside a category
- Set the value of the
isPreference
totrue
- Set the value of the
CategoryId
to the ID of an existing category
Creating a preference category
- Set the value of the
isPreference
tofalse
- Set the value of
isPublic
totrue
- Set the value of the
CategoryId
to a unique integer