Store extra information about contacts, such as a name or a customer number. All mailing lists in your account share the same properties. Create, rename and delete properties. Some property names are reserved.
Get properties
Create property
Creates a contact property and returns its handle (property ID). If a property with the same name already exists, its settings are replaced with the given ones and its handle is returned. Give language: "FI": a property created without a language is not listed by getCustomerProperties or shown in the LianaMailer UI.
Property name restrictions apply here.
Create property › Request Body
nameProperty name.
languageProperty language code. Use FI, the language of normal properties: the value is used as given, not upper-cased, and leaving it out means no language. A property without a language is not listed by getCustomerProperties or shown in the LianaMailer UI.
typeProperty input type. Defaults to text.
choicesAllowed values for select and checkbox properties.
requiredWhether the property is required on the subscription page.
subscriptionWhether the property is shown on the subscription page.
positionDisplay position of the property.
datatypeData type of the property values. Defaults to text.
hidden_from_uiWhether the property is hidden in the LianaMailer UI. Defaults to false.
Create property › Responses
OK
succeedResponse status.
resultProperty handle. See getCustomerProperties.
Rename property
Renames a contact property. Contacts' values for the property are kept. Returns an error if another property already has the new name. Give language: "FI" for normal properties: without it, the property is not found.
Property name restrictions apply here.
Rename property › Request Body
oldnameCurrent property name.
newnameNew property name.
languageProperty language code. Use FI, the language of normal properties: the value is used as given, not upper-cased, and leaving it out means no language. A property without a language is not listed by getCustomerProperties or shown in the LianaMailer UI.
Rename property › Responses
OK
succeedResponse status.
resultReturns null.
Delete property
Deletes a contact property together with all contacts' values for it. This cannot be undone. Give language: "FI" for normal properties: without it, the property is not found.
Delete property › Request Body
nameProperty name.
languageProperty language code. Use FI, the language of normal properties: the value is used as given, not upper-cased, and leaving it out means no language. A property without a language is not listed by getCustomerProperties or shown in the LianaMailer UI.
Delete property › Responses
OK
succeedResponse status.
resultReturns null.