Some restrictions apply to the types of data you can send in attribute keys and values.
Attribute keys must be strings no longer than 128 characters. Leading and trailing whitespace will
be trimmed.
Attribute keys may not begin with the symbols or punctuation shown below.
! " # $ % & ' ( ) * + , - . / : ; < = > ? @ [ \ ] ^ _ ` { | } ~
The following data types are accepted as attribute values.
- String: Strings up to 255 characters long. Leading and trailing whitespace will be
trimmed. Empty strings are not allowed.
- Integer: Positive or negative whole numbers only. Decimal places are truncated.
- Date: ISO 8601-formatted strings will be parsed and stored as dates in format
YYYY-MM-DD
- Set: Sets, represented as JSON arrays, containing strings or integers. Only one data
type is allowed in a set; if multiple data types are mixed in a set, all values in the set will
be converted to strings. Duplicate values will be collapsed.