If you’re getting a 400 error like the one below, you should check your code to see how you’re setting the numericAttributesForFiltering parameter.:
“invalid numeric attribute(attribute_name), attribute not specified
in numericAttributesForFiltering setting”
By default, all numeric attributes are automatically indexed and available as numerical filters. If you provide an empty list or null, then all numeric attributes are filterable.
If a list of attributes is specified, only those attributes listed are available as numerical filters.
If you’re getting the error for a specific attribute you should either change the setting to default (empty list or null) or add the attribute_name to the numericAttributesForFiltering.
You can either set this from the API or you can change the setting in the dashboard: