0
votes

Based on the information provided by Pavlo it appears there is no way to exclude certain fields and no way to include specific fields from Podio data returned from a JSON Post query. For the purpose of this question, the fields involved are (for example) text, category, date, calc field and others which can be added using 'modify template'.

The best work around is redesign of the app to reduce the amt of field data.

(original question) Is there a way to limit the amount of Podio data returned from a JSON Post query to include only a few specific fields instead of every field?

I understand how to use a podio view or filtering in the Post query to limit how many items are returned, but my question has to do with reducing the amount of data returned for each item by preventing data in unnecessary fields from being returned.

(following is an example of the query I use currently, but as stated above I'm looking for a way to limit the fields returned to a small subset) Example JSON query: https://api.podio.com/item/app/14773320/filter Example JSON body:

{
"filters": {
    "created_on": {
      "from": "{date.addMonths(-6).format()}",
      "to": "{date.today}"
    }
  },
"limit":250,
"offset":{props.offSet}
}
1
Can you please re-phrase your question? It's not clear what you are trying to achieve and what you are getting. Please include examples (that usually helps) :)Pavlo - Podio
Hi Pavlo - I updated the original query...R Siegmund

1 Answers

0
votes

You can use fields parameter for that. More details on how it works and how else it could be used are right here: https://developers.podio.com/index/api. Scroll down to Bundling responses using fields parameter section.

Most likely you are looking for fields=items.view(micro) parameter. Podio API will return then only 5 values for each item:

  • app_item_id
  • item_id
  • title
  • link
  • revision