iloveparks 7 Posted May 18, 2022 Share Posted May 18, 2022 Hello all - I am back again... I'm struggling to filter people based on Person and PersonType. I'm using /Users/{UserId}/Items with the following params: recursive = true ParentId = <id of library> Fields = People Person = Paul Lieberstein PersonTypes = writer Swagger says that if you specify PersonType along with Person, you will only receive filtered results for that specific PersonType, yet I continue to receive results containing the specified person, regardless of if they are an Actor/Writer/Director, etc. As an example, Paul Lieberstein is a writer and actor in many episodes of The Office, but no matter how I run my query, the API returns all the episodes he is in. Here he is as a GuestStar And again as a director: Any help is much appreciated! Link to comment Share on other sites More sharing options...
iloveparks 7 Posted May 18, 2022 Author Share Posted May 18, 2022 @Luke - Is this another example where these params may not be officially implemented for this endpoint? Link to comment Share on other sites More sharing options...
Luke 36888 Posted May 20, 2022 Share Posted May 20, 2022 OK currently these fields are only used when querying People, not by filtering media based on people. It's something that can be added though. Link to comment Share on other sites More sharing options...
iloveparks 7 Posted May 20, 2022 Author Share Posted May 20, 2022 Ah ok, I see. Swagger makes it seem like these fields are valid for this endpoint. Link to comment Share on other sites More sharing options...
Luke 36888 Posted May 20, 2022 Share Posted May 20, 2022 Yea it's just because we have one generalized request object for querying that is used in a lot of places and that causes swagger to think that. 1 Link to comment Share on other sites More sharing options...
iloveparks 7 Posted May 20, 2022 Author Share Posted May 20, 2022 Got it. Last one.. for now.. 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