Discussions

Ask a Question
Back to All

Ability to limit fields returned by a given query

There is a lot of extraneous data returned for many of the API endpoints. It would be great if there was something like a fields parameter to scope the specific fields returned.

Ex: If I need to programmatically pull the shifts for users with a specific email domain, I first need to query all users. Each user contains 44 individual keys/names many of which are empty. If I have 100 users, I have to parse 4,312 keypairs that I do not need.

Then, while iterating shifts, I need to parse 42 individual keys/names. I may only be interested in a handful of these fields across thousands of records, meaning there are tens of thousands of unnecessary keypairs being returned.