Content API filtering assets with multiple values #5759
-
I have a taxonomy terms field on all my assets with multi select enabled.
Is there a better way? |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments
-
I'm stuck wondering the same thing. It seems strange that filtering with an array isn't possible. |
Beta Was this translation helpful? Give feedback.
-
This was added in Statamic v3.3.34 and recently got documented by @tomhelmer. Have a look at the docs on it. You can now do something like: Hope that helps :) |
Beta Was this translation helpful? Give feedback.
-
Nice, thanks for the comment!! |
Beta Was this translation helpful? Give feedback.
-
Ah amazing, thanks for the heads up @joshuablum 🙌 |
Beta Was this translation helpful? Give feedback.
Hey @ewhicher and @Eworm,
This was added in Statamic v3.3.34 and recently got documented by @tomhelmer.
Have a look at the docs on it.
You can now do something like:
/endpoint?filter[taxonomy:{handle}]={value},{value},{value}
Hope that helps :)