Jump to content

Recommended Posts

Posted

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

Posted
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.

Posted
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.

Posted

OK, adding both ExcludeTags and ExcludeTagIds.

  • Like 1
  • Thanks 1

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...