<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Error on api v1 for /networks/:networkId/sm/devices?fields={{fields}} in Network Platform API</title>
    <link>https://community.cisco.com/t5/network-platform-api/error-on-api-v1-for-networks-networkid-sm-devices-fields-fields/m-p/5442346#M6576</link>
    <description>&lt;P&gt;Have you got it formatted as an array?&lt;/P&gt;</description>
    <pubDate>Tue, 08 Sep 2020 21:14:33 GMT</pubDate>
    <dc:creator>Philip D'Ath</dc:creator>
    <dc:date>2020-09-08T21:14:33Z</dc:date>
    <item>
      <title>Error on api v1 for /networks/:networkId/sm/devices?fields={{fields}}</title>
      <link>https://community.cisco.com/t5/network-platform-api/error-on-api-v1-for-networks-networkid-sm-devices-fields-fields/m-p/5442345#M6575</link>
      <description>&lt;P&gt;Hi ,&lt;/P&gt;&lt;P&gt;I was trying to add additional fields to return for SM Devices.&lt;/P&gt;&lt;DIV&gt;&lt;SPAN&gt;eg:  /networks/:networkId/sm/devices?fields=systemType,deviceCapacity&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt; &lt;/DIV&gt;&lt;P&gt;But I am finding this error&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;{&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;    &lt;/SPAN&gt;&lt;SPAN&gt;"errors"&lt;/SPAN&gt;&lt;SPAN&gt;: [&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;        &lt;/SPAN&gt;&lt;SPAN&gt;"'fields' must be an array"&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;    ]&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;}&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt; &lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;The same is working for api v0.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt; &lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Any thoughts.?&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt; &lt;/DIV&gt;&lt;DIV&gt; &lt;/DIV&gt;&lt;DIV&gt; &lt;/DIV&gt;&lt;DIV&gt; &lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Tue, 08 Sep 2020 12:01:28 GMT</pubDate>
      <guid>https://community.cisco.com/t5/network-platform-api/error-on-api-v1-for-networks-networkid-sm-devices-fields-fields/m-p/5442345#M6575</guid>
      <dc:creator>Mins</dc:creator>
      <dc:date>2020-09-08T12:01:28Z</dc:date>
    </item>
    <item>
      <title>Re: Error on api v1 for /networks/:networkId/sm/devices?fields={{fields}}</title>
      <link>https://community.cisco.com/t5/network-platform-api/error-on-api-v1-for-networks-networkid-sm-devices-fields-fields/m-p/5442346#M6576</link>
      <description>&lt;P&gt;Have you got it formatted as an array?&lt;/P&gt;</description>
      <pubDate>Tue, 08 Sep 2020 21:14:33 GMT</pubDate>
      <guid>https://community.cisco.com/t5/network-platform-api/error-on-api-v1-for-networks-networkid-sm-devices-fields-fields/m-p/5442346#M6576</guid>
      <dc:creator>Philip D'Ath</dc:creator>
      <dc:date>2020-09-08T21:14:33Z</dc:date>
    </item>
    <item>
      <title>Re: Error on api v1 for /networks/:networkId/sm/devices?fields={{fields}}</title>
      <link>https://community.cisco.com/t5/network-platform-api/error-on-api-v1-for-networks-networkid-sm-devices-fields-fields/m-p/5442347#M6577</link>
      <description>&lt;P&gt;I've noticed this as well, particularly as a v0 to v1 problem.&lt;/P&gt;&lt;P&gt;The documentation for v0 actually states to use a comma-separated string for fields, which works for v0.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;A href="https://developer.cisco.com/meraki/api/#!get-network-sm-devices" target="_blank" rel="noopener nofollow noreferrer"&gt;https://developer.cisco.com/meraki/api/#!get-network-sm-devices&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;This fails in v1. Trying to use an array doesn't work either.&lt;/P&gt;&lt;P&gt;This works (v0):&lt;/P&gt;&lt;P data-unlink="true"&gt;https://api.meraki.com/api/v0/networks/{{networkId}}/sm/devices?fields=id,name,lastUser,ownerEmail,ownerUsername &lt;/P&gt;&lt;P&gt;These do not (v1):&lt;/P&gt;&lt;P data-unlink="true"&gt;https://api.meraki.com/api/v1/networks/{{networkId}}/sm/devices?fields=id,name,lastUser,ownerEmail,ownerUsername&lt;/P&gt;&lt;P data-unlink="true"&gt;https://api.meraki.com/api/v1/networks/{{networkId}}/sm/devices?fields=[id,name,lastUser,ownerEmail,ownerUsername] &lt;/P&gt;&lt;P data-unlink="true"&gt;https://api.meraki.com/api/v1/networks/{{networkId}}/sm/devices?fields=[&lt;SPAN&gt;'id','name','lastUser','ownerEmail','ownerUsername']&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 08 Sep 2020 22:17:54 GMT</pubDate>
      <guid>https://community.cisco.com/t5/network-platform-api/error-on-api-v1-for-networks-networkid-sm-devices-fields-fields/m-p/5442347#M6577</guid>
      <dc:creator>gemini_yvr</dc:creator>
      <dc:date>2020-09-08T22:17:54Z</dc:date>
    </item>
    <item>
      <title>Re: Error on api v1 for /networks/:networkId/sm/devices?fields={{fields}}</title>
      <link>https://community.cisco.com/t5/network-platform-api/error-on-api-v1-for-networks-networkid-sm-devices-fields-fields/m-p/5442348#M6578</link>
      <description>&lt;P&gt;&lt;SPAN&gt;/networks/:networkId/sm/devices?fields[]={{fields}}&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I was trying some error and trial and the above worked for me.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 13 Sep 2020 21:41:37 GMT</pubDate>
      <guid>https://community.cisco.com/t5/network-platform-api/error-on-api-v1-for-networks-networkid-sm-devices-fields-fields/m-p/5442348#M6578</guid>
      <dc:creator>Mins</dc:creator>
      <dc:date>2020-09-13T21:41:37Z</dc:date>
    </item>
    <item>
      <title>Re: Error on api v1 for /networks/:networkId/sm/devices?fields={{fields}}</title>
      <link>https://community.cisco.com/t5/network-platform-api/error-on-api-v1-for-networks-networkid-sm-devices-fields-fields/m-p/5442349#M6579</link>
      <description>&lt;P&gt;The following API call on version 1 should allow this to work for anyone who is curious:&lt;/P&gt;&lt;P&gt;&lt;SPAN class="resolvedVariable"&gt;&lt;SPAN&gt;{{baseUrl}}&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN&gt;/networks/:networkId/sm/devices?fields[]=id,name&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 13 Apr 2021 02:46:51 GMT</pubDate>
      <guid>https://community.cisco.com/t5/network-platform-api/error-on-api-v1-for-networks-networkid-sm-devices-fields-fields/m-p/5442349#M6579</guid>
      <dc:creator>CalebBartle</dc:creator>
      <dc:date>2021-04-13T02:46:51Z</dc:date>
    </item>
  </channel>
</rss>

