Skip to content

Create Data Attribute Request

One of:
namestringrequired

The name of the data attribute.

Example:"My Data Attribute"
modelstringrequired

The model that the data attribute belongs to.

Enum:"contact""company"
Example:"contact"
descriptionstring

The readable description you see in the UI for the attribute.

Example:"My Data Attribute Description"
messenger_writableboolean

Can this attribute be updated by the Messenger

Example:false
data_typeanyrequired
Value:"options"
optionsArray of objectsrequired

Array of objects representing the options of the list, with value as the key and the option as the value. At least two options are required.

Example:
[ { "value": "1-10" }, { "value": "11-50" } ]
{ "name": "My Data Attribute", "model": "contact", "description": "My Data Attribute Description", "messenger_writable": false, "data_type": "options", "options": [ { … }, { … } ] }