<?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: getDevice and updateDevice doesn't work in Network Platform API</title>
    <link>https://community.cisco.com/t5/network-platform-api/getdevice-and-updatedevice-doesn-t-work/m-p/5435983#M5758</link>
    <description>&lt;P&gt;Yeah I opened a case, thanks for the help!&lt;/P&gt;</description>
    <pubDate>Fri, 05 Jul 2024 13:36:01 GMT</pubDate>
    <dc:creator>churches_co</dc:creator>
    <dc:date>2024-07-05T13:36:01Z</dc:date>
    <item>
      <title>getDevice and updateDevice doesn't work</title>
      <link>https://community.cisco.com/t5/network-platform-api/getdevice-and-updatedevice-doesn-t-work/m-p/5435979#M5754</link>
      <description>&lt;P&gt;I'm making a simple web-application for a client using the Meraki API. But neither of the two requests that is needed for the application is working and I cannot seem to get what is wrong. It's regarding the get-request getDevice and put-request updateDevice. All I receive is 404.&lt;/P&gt;&lt;P&gt;This is for the get-request:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;curl -L --request GET \&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;--url &lt;A href="https://api.meraki.com/api/v1/devices/XXXXXXXXXXXX" target="_blank" rel="noopener nofollow noreferrer"&gt;https://api.meraki.com/api/v1/devices/XXXXXXXXXXXX&lt;/A&gt; \&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;--header 'Content-Type: application/json' \&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;--header 'Accept: application/json' \&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;--header 'X-Cisco-Meraki-API-Key: [my api key]'&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt; &lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;and this is for the put-request:&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt; &lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;curl -L --request PUT \&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;--url &lt;A href="https://api.meraki.com/api/v1/devices/XXXXXXXXXXXX" target="_blank" rel="noopener nofollow noreferrer"&gt;https://api.meraki.com/api/v1/devices/XXXXXXXXXXXX&lt;/A&gt; \&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;--header 'Content-Type: application/json' \&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;--header 'Accept: application/json' \&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;--header 'X-Cisco-Meraki-API-Key: [my api key]'&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt; &lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;(i'm usually doing all of this in postman in then I have a body of course for the put-request)&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt; &lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;i've also tried tried adding networks/network_id along with /sm in the path, but nothing is working and the documentation doesn't provide any answer whatsoever. And yes my key is valid, i can still get all the devices from a certain network and such. And I've made sure that the device is not in the inventory but in an actual network. Any ideas or has anyone had the same problem?&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 05 Jul 2024 12:55:26 GMT</pubDate>
      <guid>https://community.cisco.com/t5/network-platform-api/getdevice-and-updatedevice-doesn-t-work/m-p/5435979#M5754</guid>
      <dc:creator>churches_co</dc:creator>
      <dc:date>2024-07-05T12:55:26Z</dc:date>
    </item>
    <item>
      <title>Re: getDevice and updateDevice doesn't work</title>
      <link>https://community.cisco.com/t5/network-platform-api/getdevice-and-updatedevice-doesn-t-work/m-p/5435980#M5755</link>
      <description>&lt;P&gt;First, ensure you have the right network permission(which I assume you already have as you can get the organization list). Then try the below curl command to rule out any library issues.&lt;/P&gt;&lt;P&gt;curl -L --request GET \&lt;BR /&gt;--url &lt;A href="https://api.meraki.com/api/v1/devices/[YOUR" target="_blank" rel="nofollow noopener noreferrer"&gt;https://api.meraki.com/api/v1/devices/[YOUR&lt;/A&gt; SERIAL NUMBER] \&lt;BR /&gt;--header 'Content-Type: application/json' \&lt;BR /&gt;--header 'Accept: application/json' \&lt;BR /&gt;--header 'X-Cisco-Meraki-API-Key: [YOUR API KEY]'&lt;/P&gt;</description>
      <pubDate>Fri, 05 Jul 2024 13:01:25 GMT</pubDate>
      <guid>https://community.cisco.com/t5/network-platform-api/getdevice-and-updatedevice-doesn-t-work/m-p/5435980#M5755</guid>
      <dc:creator>aleabrahao</dc:creator>
      <dc:date>2024-07-05T13:01:25Z</dc:date>
    </item>
    <item>
      <title>Re: getDevice and updateDevice doesn't work</title>
      <link>https://community.cisco.com/t5/network-platform-api/getdevice-and-updatedevice-doesn-t-work/m-p/5435981#M5756</link>
      <description>&lt;P&gt;I may be wrong, but what you wrote is identical to mine. Is it working for you that request?&lt;/P&gt;</description>
      <pubDate>Fri, 05 Jul 2024 13:04:58 GMT</pubDate>
      <guid>https://community.cisco.com/t5/network-platform-api/getdevice-and-updatedevice-doesn-t-work/m-p/5435981#M5756</guid>
      <dc:creator>churches_co</dc:creator>
      <dc:date>2024-07-05T13:04:58Z</dc:date>
    </item>
    <item>
      <title>Re: getDevice and updateDevice doesn't work</title>
      <link>https://community.cisco.com/t5/network-platform-api/getdevice-and-updatedevice-doesn-t-work/m-p/5435982#M5757</link>
      <description>&lt;P&gt;Yes, the commands you are running are correct. Just check if you have the correct network permission, if the S/N and API key are correct.&lt;/P&gt;&lt;P&gt;If everything is ok, I suggest you open a support case.&lt;/P&gt;</description>
      <pubDate>Fri, 05 Jul 2024 13:09:09 GMT</pubDate>
      <guid>https://community.cisco.com/t5/network-platform-api/getdevice-and-updatedevice-doesn-t-work/m-p/5435982#M5757</guid>
      <dc:creator>aleabrahao</dc:creator>
      <dc:date>2024-07-05T13:09:09Z</dc:date>
    </item>
    <item>
      <title>Re: getDevice and updateDevice doesn't work</title>
      <link>https://community.cisco.com/t5/network-platform-api/getdevice-and-updatedevice-doesn-t-work/m-p/5435983#M5758</link>
      <description>&lt;P&gt;Yeah I opened a case, thanks for the help!&lt;/P&gt;</description>
      <pubDate>Fri, 05 Jul 2024 13:36:01 GMT</pubDate>
      <guid>https://community.cisco.com/t5/network-platform-api/getdevice-and-updatedevice-doesn-t-work/m-p/5435983#M5758</guid>
      <dc:creator>churches_co</dc:creator>
      <dc:date>2024-07-05T13:36:01Z</dc:date>
    </item>
    <item>
      <title>Re: getDevice and updateDevice doesn't work</title>
      <link>https://community.cisco.com/t5/network-platform-api/getdevice-and-updatedevice-doesn-t-work/m-p/5435984#M5759</link>
      <description>&lt;P&gt;Try updating your curl command to use the Bearer authorization instead.&lt;/P&gt;&lt;PRE class="lia-code-sample language-markup"&gt;&lt;CODE&gt;curl -L --request GET \
--url https://api.meraki.com/api/v1/devices/{serial} \
--header 'Authorization: Bearer 75dd5334bef4d2bc96f26138c163c0a3fa0b5ca6' \
--header 'Accept: application/json'&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;A href="https://developer.cisco.com/meraki/api-v1/get-device/" target="_blank" rel="nofollow noopener noreferrer"&gt;https://developer.cisco.com/meraki/api-v1/get-device/&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 05 Jul 2024 17:28:37 GMT</pubDate>
      <guid>https://community.cisco.com/t5/network-platform-api/getdevice-and-updatedevice-doesn-t-work/m-p/5435984#M5759</guid>
      <dc:creator>Rasmus Hoffmann Birkelund</dc:creator>
      <dc:date>2024-07-05T17:28:37Z</dc:date>
    </item>
    <item>
      <title>Re: getDevice and updateDevice doesn't work</title>
      <link>https://community.cisco.com/t5/network-platform-api/getdevice-and-updatedevice-doesn-t-work/m-p/5435985#M5760</link>
      <description>&lt;P&gt;On the page &lt;A href="https://community.meraki.com/t5/user/viewprofilepage/user-id/2924"&gt;@Rasmus Hoffmann Birkelund&lt;/A&gt; gave (or any other API page), select "Code Snippets", "Curl" to get a copy and paste example.&lt;/P&gt;&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="PhilipDAth_0-1720428761419.png" style="width: 400px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="image.png"&gt;&lt;img src="https://community.cisco.com/t5/image/serverpage/image-id/263889i906F84D9DD68C839/image-size/large?v=v2&amp;amp;px=999" role="button" title="image.png" alt="image.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 08 Jul 2024 08:52:57 GMT</pubDate>
      <guid>https://community.cisco.com/t5/network-platform-api/getdevice-and-updatedevice-doesn-t-work/m-p/5435985#M5760</guid>
      <dc:creator>Philip D'Ath</dc:creator>
      <dc:date>2024-07-08T08:52:57Z</dc:date>
    </item>
  </channel>
</rss>

