Get Organization Networks by tag

SOLVED
dade80vr
Getting noticed

Get Organization Networks by tag

Hi. I'm stuck on a simple tag filter in webapi: i get a bad request with error:

 

"errors": [ "'tags' must be an array" ]

 

https://developer.cisco.com/meraki/api-latest/#!get-organization-networks

 

How can i filter networks with specified tag?

Thank you.

1 ACCEPTED SOLUTION
RaphaelL
Kind of a big deal
Kind of a big deal

Either it is bugged or the documentation is wrong or I'm dumb but the only way I'm able to pass an ''array'' is by doing so : 

 

/api/v1/organizations/{orgID}/networks?tags[]=TAG1&tags[]=TAG2&tagsFilterType=withAllTags   (  or withANYTags )

 

And it seems to be working.

View solution in original post

3 REPLIES 3
dade80vr
Getting noticed

solved on webabi by adding query params tags[]

still having problems on Postman, it seems to ignore the filter

RaphaelL
Kind of a big deal
Kind of a big deal

Either it is bugged or the documentation is wrong or I'm dumb but the only way I'm able to pass an ''array'' is by doing so : 

 

/api/v1/organizations/{orgID}/networks?tags[]=TAG1&tags[]=TAG2&tagsFilterType=withAllTags   (  or withANYTags )

 

And it seems to be working.

works, thank you

Get notified when there are additional replies to this discussion.
Welcome to the Meraki Community!
To start contributing, simply sign in with your Cisco account. If you don't yet have a Cisco account, you can sign up.