Back to Developer changelog

Function parameter values can be queried in the Segmentation API

API

Effective July 01, 2023

Action required

As of GraphQL Admin API Version 2023-07, you can use the new functionParameterQueryName argument on segmentValueSuggestions to query for function parameter value suggestions for Customer Segmentation.

For example, the products_purchased filter has the function parameter id: products_purchased(id: '2012162031638') = true. To retrieve a list of possible Product IDs to use for the id function parameter, provide filterQueryName: 'products_purchased', functionParameterQueryName: 'id' as arguments to the segmentValueSuggestions endpoint.