TeamB 2438 Posted October 23, 2023 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
Luke 42077 Posted October 23, 2023 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.
TeamB 2438 Posted October 23, 2023 Author 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.
Luke 42077 Posted October 23, 2023 Posted October 23, 2023 OK, adding both ExcludeTags and ExcludeTagIds. 1 1
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