TeamB 2353 Posted October 23, 2023 Share Posted October 23, 2023 Can we have the ability to filter on existence or non-existence of a flag in the API /Users/{UserId}/Items?Tags=SomeFlag I want to be able to add flags to items and have them NOT show up in API results. One way might just to to allow adding a - in front of the flag like this: /Users/{UserId}/Items?Tags=-SomeFlag This would filter out any items with the tag SomeFlag Link to comment Share on other sites More sharing options...
Luke 37093 Posted October 23, 2023 Share Posted October 23, 2023 Quote /Users/{UserId}/Items?Tags=SomeFlag Hi, this already exists and supports multiple, pipe delimited. Alternatively TagIds is also supported if you have those. There is no exclusion filter but it's not a bad idea to add. Link to comment Share on other sites More sharing options...
TeamB 2353 Posted October 23, 2023 Author Share Posted October 23, 2023 54 minutes ago, Luke said: There is no exclusion filter but it's not a bad idea to add. That is what I was actually asking for, I know you can filter on the existence of a tag but I wanted to be able to exclude also. using the -<TAGNAME> or -<TAGID> to exclude thoes items would help me with filtering out some items in API requests. Link to comment Share on other sites More sharing options...
Luke 37093 Posted October 23, 2023 Share Posted October 23, 2023 OK, adding both ExcludeTags and ExcludeTagIds. 1 1 Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now