I found what seems to be a bug while creating a Smart Collection via the Rest API to filter by product metafields.
I pass in the condition_object_id value as a number, but when I request it, I see it’s saved as a string, which breaks the functionality (see images below).
As you can see in the frontend image, it breaks the page’s functionality in two ways:
- It can’t render the rule
- The rule isn’t functional
However, when I reconfigure the collection from the frontend, the API returns condition_object_id as a number, and everything works.
This leads to me believe that it’s a rest API issue, being that’s how the bug is reproducible (and the frontend doesn’t use it).

