<?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 dashboard.devices.updateDevice -&amp;gt; error 404 in Network Platform API</title>
    <link>https://community.cisco.com/t5/network-platform-api/dashboard-devices-updatedevice-gt-error-404/m-p/5425982#M4339</link>
    <description>&lt;P&gt;Hi Meraki-Community,&lt;/P&gt;&lt;P&gt;I am working on a script where I want to update settings for some devices. However, I am stuck with the updateDevice function, because it is giving me a 404 error.&lt;BR /&gt;One could think, the given serial of the device is just wrong, but for the same serial I get a response with the getOrganizationInventoryDevice function.&lt;BR /&gt;Did someone stumble upon this already? Some ideas how I could fix this?&lt;/P&gt;&lt;P&gt;Here are some code snippets for explanation, what is working and what not:&lt;BR /&gt;&lt;BR /&gt;response = dashboard.organizations.getOrganizationInventoryDevice(ORG_ID,dev["serial"])&lt;/P&gt;&lt;P&gt;print(response)&lt;/P&gt;&lt;P&gt;this is returning me a dictionary with MAC-Address, serial, name, model and further information&lt;/P&gt;&lt;P&gt;response = dashboard.devices.getDevice(dev["serial"])&lt;/P&gt;&lt;P&gt;this is throwing a 404 error meraki.exceptions.APIError: devices, getDevice - 404 Not Found, please wait a minute if the key or org was just newly created.&lt;/P&gt;&lt;P&gt;the same as with&lt;/P&gt;&lt;P&gt;response = dashboard.devices.updateDevice( dev["serial"], name=dev["name"], tags="test")&lt;/P&gt;&lt;P&gt;I am running the functions in the same loop, so dev["serial"] is always the same value, but even if I try it with a hard coded serial I get the same result.&lt;/P&gt;&lt;P&gt;thank you for any hint,&lt;/P&gt;&lt;P&gt;Mira&lt;/P&gt;&lt;P&gt;PS: I claimed that device to inventory on 15 of december, so waiting a couple of minutes does not seem to be the solution&lt;/P&gt;</description>
    <pubDate>Fri, 23 Dec 2022 15:27:56 GMT</pubDate>
    <dc:creator>m.eilenstein</dc:creator>
    <dc:date>2022-12-23T15:27:56Z</dc:date>
    <item>
      <title>dashboard.devices.updateDevice -&gt; error 404</title>
      <link>https://community.cisco.com/t5/network-platform-api/dashboard-devices-updatedevice-gt-error-404/m-p/5425982#M4339</link>
      <description>&lt;P&gt;Hi Meraki-Community,&lt;/P&gt;&lt;P&gt;I am working on a script where I want to update settings for some devices. However, I am stuck with the updateDevice function, because it is giving me a 404 error.&lt;BR /&gt;One could think, the given serial of the device is just wrong, but for the same serial I get a response with the getOrganizationInventoryDevice function.&lt;BR /&gt;Did someone stumble upon this already? Some ideas how I could fix this?&lt;/P&gt;&lt;P&gt;Here are some code snippets for explanation, what is working and what not:&lt;BR /&gt;&lt;BR /&gt;response = dashboard.organizations.getOrganizationInventoryDevice(ORG_ID,dev["serial"])&lt;/P&gt;&lt;P&gt;print(response)&lt;/P&gt;&lt;P&gt;this is returning me a dictionary with MAC-Address, serial, name, model and further information&lt;/P&gt;&lt;P&gt;response = dashboard.devices.getDevice(dev["serial"])&lt;/P&gt;&lt;P&gt;this is throwing a 404 error meraki.exceptions.APIError: devices, getDevice - 404 Not Found, please wait a minute if the key or org was just newly created.&lt;/P&gt;&lt;P&gt;the same as with&lt;/P&gt;&lt;P&gt;response = dashboard.devices.updateDevice( dev["serial"], name=dev["name"], tags="test")&lt;/P&gt;&lt;P&gt;I am running the functions in the same loop, so dev["serial"] is always the same value, but even if I try it with a hard coded serial I get the same result.&lt;/P&gt;&lt;P&gt;thank you for any hint,&lt;/P&gt;&lt;P&gt;Mira&lt;/P&gt;&lt;P&gt;PS: I claimed that device to inventory on 15 of december, so waiting a couple of minutes does not seem to be the solution&lt;/P&gt;</description>
      <pubDate>Fri, 23 Dec 2022 15:27:56 GMT</pubDate>
      <guid>https://community.cisco.com/t5/network-platform-api/dashboard-devices-updatedevice-gt-error-404/m-p/5425982#M4339</guid>
      <dc:creator>m.eilenstein</dc:creator>
      <dc:date>2022-12-23T15:27:56Z</dc:date>
    </item>
    <item>
      <title>Re: dashboard.devices.updateDevice -&gt; error 404</title>
      <link>https://community.cisco.com/t5/network-platform-api/dashboard-devices-updatedevice-gt-error-404/m-p/5425983#M4340</link>
      <description>&lt;P&gt;That looks correct to me.  I would try opening a support case for this.  Smells like it could be a bug.&lt;/P&gt;</description>
      <pubDate>Sat, 24 Dec 2022 00:25:13 GMT</pubDate>
      <guid>https://community.cisco.com/t5/network-platform-api/dashboard-devices-updatedevice-gt-error-404/m-p/5425983#M4340</guid>
      <dc:creator>Philip D'Ath</dc:creator>
      <dc:date>2022-12-24T00:25:13Z</dc:date>
    </item>
    <item>
      <title>Re: dashboard.devices.updateDevice -&gt; error 404</title>
      <link>https://community.cisco.com/t5/network-platform-api/dashboard-devices-updatedevice-gt-error-404/m-p/5425984#M4341</link>
      <description>&lt;P&gt;Thank you &lt;A href="https://community.meraki.com/t5/user/viewprofilepage/user-id/340"&gt;@Philip D'Ath&lt;/A&gt;, I will try to open a support case for this.&lt;/P&gt;&lt;P&gt;I tried now the same with the requests modul and with postman and with a curl request and with different serials with the same result: error 404. I am wondering, if I am the only one trying to change settings of a device via Dashboard API or if there is another way...&lt;/P&gt;</description>
      <pubDate>Sun, 25 Dec 2022 20:00:20 GMT</pubDate>
      <guid>https://community.cisco.com/t5/network-platform-api/dashboard-devices-updatedevice-gt-error-404/m-p/5425984#M4341</guid>
      <dc:creator>m.eilenstein</dc:creator>
      <dc:date>2022-12-25T20:00:20Z</dc:date>
    </item>
    <item>
      <title>Re: dashboard.devices.updateDevice -&gt; error 404</title>
      <link>https://community.cisco.com/t5/network-platform-api/dashboard-devices-updatedevice-gt-error-404/m-p/5425985#M4342</link>
      <description>&lt;P&gt;&lt;A href="https://community.meraki.com/t5/user/viewprofilepage/user-id/85112"&gt;@m.eilenstein&lt;/A&gt;  Can you confirm that the device has been added to a network already?  If yes, you should find the network ID in the result of &lt;SPAN&gt;getOrganizationInventoryDevice. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;It's expected the dashboard.devices.getDevice endpoint to return 404 error if the device just sits in the inventory but not in a network. &lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 26 Dec 2022 01:20:55 GMT</pubDate>
      <guid>https://community.cisco.com/t5/network-platform-api/dashboard-devices-updatedevice-gt-error-404/m-p/5425985#M4342</guid>
      <dc:creator>xiaoyhu</dc:creator>
      <dc:date>2022-12-26T01:20:55Z</dc:date>
    </item>
    <item>
      <title>Re: dashboard.devices.updateDevice -&gt; error 404</title>
      <link>https://community.cisco.com/t5/network-platform-api/dashboard-devices-updatedevice-gt-error-404/m-p/5425986#M4343</link>
      <description>&lt;P&gt;Good morning@&lt;A href="https://community.meraki.com/t5/user/viewprofilepage/user-id/4321"&gt;@xiaoyhu&lt;/A&gt; ,&lt;/P&gt;&lt;P&gt;Thank you for your reply, I can confirm, that the devices I used for my tests are only in the inventory, but not yet in a network.&lt;/P&gt;&lt;P&gt;I will immediately try to put them into a network and rerun my script.&lt;/P&gt;</description>
      <pubDate>Mon, 26 Dec 2022 09:03:54 GMT</pubDate>
      <guid>https://community.cisco.com/t5/network-platform-api/dashboard-devices-updatedevice-gt-error-404/m-p/5425986#M4343</guid>
      <dc:creator>m.eilenstein</dc:creator>
      <dc:date>2022-12-26T09:03:54Z</dc:date>
    </item>
    <item>
      <title>Re: dashboard.devices.updateDevice -&gt; error 404</title>
      <link>https://community.cisco.com/t5/network-platform-api/dashboard-devices-updatedevice-gt-error-404/m-p/5425987#M4344</link>
      <description>&lt;P&gt;I claimed the device to a network and the updateDevice function worked!&lt;/P&gt;&lt;P&gt;Thank you &lt;A href="https://community.meraki.com/t5/user/viewprofilepage/user-id/4321"&gt;@xiaoyhu&lt;/A&gt; &lt;/P&gt;</description>
      <pubDate>Tue, 27 Dec 2022 09:25:32 GMT</pubDate>
      <guid>https://community.cisco.com/t5/network-platform-api/dashboard-devices-updatedevice-gt-error-404/m-p/5425987#M4344</guid>
      <dc:creator>m.eilenstein</dc:creator>
      <dc:date>2022-12-27T09:25:32Z</dc:date>
    </item>
  </channel>
</rss>

