Create Data Attribute Request

name
required
string

The name of the data attribute.

model
required
string

The model that the data attribute belongs to.

Enum: "contact" "company"
data_type
required
string

The type of data stored for this attribute.

Enum: "string" "integer" "float" "boolean" "datetime" "date"
description
string

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

options
Array of strings

To create list attributes. Provide a set of hashes with value as the key of the options you want to make. data_type must be string.

messenger_writable
boolean

Can this attribute be updated by the Messenger

{ "name": "My Data Attribute", "model": "contact", "data_type": "string", "description": "My Data Attribute Description", "options": [ "option1", "option2" ], "messenger_writable": false }