Simple API URL structure?

Answered

Comments

7 comments

  • Andreas Haugstrup Pedersen

    That URL doesn't match up with any API Operation. That's why you get the error.

    If you have a view ID you can use /view/{view_id} - see https://developers.podio.com/doc/views/get-view-27450

    If you don't have a view_id, but just want to filter /item/app/{app_id}/filter/ - see https://developers.podio.com/doc/items/filter-items-4496747 Beware that this is a POST request

    0
    Comment actions Permalink
  • Allen Fuller

    Thanks! That solves that mystery!

    I guess really what I am trying to do is create a filter based on the value of an app reference field. How would I structure that?

    Thanks again!

    0
    Comment actions Permalink
  • Andreas Haugstrup Pedersen

    For Filter Items you can see that it has a 'filters' key in the request body. Filters is a hash and just set a key to be the field_id of your app reference field and the value to be an array of item_ids that should be matched.

    Does that make sense?

    /Andreas

    0
    Comment actions Permalink
  • Allen Fuller

    Hi Andreas,

    I really appreciate your help. I'm still not clear though... How would I construct a URL to include the field_id key in the URL?

    Thanks again!

    -Allen

    0
    Comment actions Permalink
  • Andreas Haugstrup Pedersen

    The request is a POST request and the field key goes along with all the other settings as a part of the JSON you send in the request body.

    0
    Comment actions Permalink
  • Allen Fuller

    It's a POST request, even if I want to GET a filtered list of web app items back? That might be where I was confused.

    0
    Comment actions Permalink
  • Andreas Haugstrup Pedersen

    As you can see in the API documentation link I included earlier it is indeed a POST request: https://developers.podio.com/doc/items/filter-items-4496747

    This is for the simple reason that the filter syntax gets very complicated to represent in a query string.

    Generally speaking, if you can you should use one of our API clients as much this this nitty gritty stuff is handled for you: https://developers.podio.com/clients

    /Andreas

    0
    Comment actions Permalink

Please sign in to leave a comment.

Powered by Zendesk