JSON API

Data Types

4min
when registering attributes with our api, you can specify various data types to ensure proper handling and validation of the data by understanding and utilizing these data types, you can ensure that your attributes are registered correctly, leading to better data management and retrieval here’s an overview of the attribute data types we support string represents a sequence of characters use this data type for textual data multivalue represents an array of strings use this data type for attributes that require multiple string values the grouping of a custom attribute doesn't work when selecting multivalue as the data type number represents any decimal number ranging between 9999999999999 and 9999999999999 it supports up to 7 decimal points; beyond this, rounding may occur mantissa values (parts of a number in scientific notation) will be accepted but their behavior is not guaranteed when selecting an attribute for use as a range filter, you must choose the number data type for more information on how to implement range filters to enable number for a range filter's min max range, the attribute definition will need to be updated to include rangeable\ true multivalue number represents an array of numerical values (each following the number data type specifications) use this data type for attributes that require multiple numerical values when using mulitvalue number for a range filter's min max range, the attribute definition will need to be updated to include rangeable\ true