Podio API - Filter items
AnsweredHi, guys.
I have faced an issue. I have an app. And I want to get an item from it by field value.
I'm using this API to get it -> https://developers.podio.com/doc/items/filter-items-4496747.
If I am using 'external_id: value' in filter field it doesn't return anything. If I am using 'field_id: value' in filter field it returns wrong item.
But when I try to search an item from UI it works perfect.
Would you please help me with this issue? We need to be able get items from server by API.
Best Regards,
Andrey
-
Hi, Andreas.
Thanks for reply. Request is below.
POST /item/app/{app_id}/filter/ HTTP/1.1
Host: api.podio.com:443
Authorization: OAuth2 tokenhere
Cache-Control: no-cacheContent-Disposition: form-data; name="filters"
{ filters: { title: '160103' }, limit: 500, offset: 0 }Request returns an item with title 160132, but 160103 exists.
Andrey
-
You need to use the search API to query on text fields: https://developers.podio.com/doc/search
Filters are documented here: https://developers.podio.com/doc/filters
Please sign in to leave a comment.
Comments
5 comments