# Create Data Attribute Request

Schema: #/components/schemas/create_data_attribute_request

Method: SCHEMA
Version: 2.7
Security: bearerAuth

## Schema fields:

  - `name` (string, required)
    The name of the data attribute.
    Example: My Data Attribute

  - `model` (string, required)
    The model that the data attribute belongs to.
    Enum: "contact", "company"

  - `description` (string)
    The readable description you see in the UI for the attribute.
    Example: My Data Attribute Description

  - `messenger_writable` (boolean)
    Can this attribute be updated by the Messenger
    Example: false

  - `data_type` (string)
    Enum: "options"

  - `options` (array, required)
    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"}]

  - `options.value` (string)

  - `data_type` (string)
    Enum: "string", "integer", "float", "boolean", "datetime", "date"

