<?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 API to add network to a device. in Network Platform API</title>
    <link>https://community.cisco.com/t5/network-platform-api/api-to-add-network-to-a-device/m-p/5422556#M3693</link>
    <description>&lt;P&gt;I'm working on some automation scripting and have figured out most of what I need except I can't figure out how to connect a network to a device.  I have a script to get the details of an existing device and it shows a "networkId": "L_XXXXXXXXXXXXXX".&lt;/P&gt;&lt;P&gt;"networkID" is not listed in the schema on &lt;A href="https://developer.cisco.com/meraki/api-v1/update-device/" target="_blank" rel="nofollow noopener noreferrer"&gt;Update Device - Meraki Dashboard API v1 - Cisco Meraki Developer Hub&lt;/A&gt; so is this possible to do or is there another API call I should be using instead?&lt;/P&gt;&lt;P&gt;If I try to update a device with a PUT and using a "networkId": "L_YYYYYYYYYYYYY" I get&lt;/P&gt;&lt;P&gt;Status Code: 400&lt;BR /&gt;Response Text: {"errors":["Error for /devices/{serial}: None of the fields ('name', 'tags', 'lat', 'lng', 'address', 'notes', 'moveMapMarker', 'switchProfileId' or 'floorPlanId') were specified."]}&lt;/P&gt;</description>
    <pubDate>Mon, 08 Dec 2025 18:39:30 GMT</pubDate>
    <dc:creator>orrellb</dc:creator>
    <dc:date>2025-12-08T18:39:30Z</dc:date>
    <item>
      <title>API to add network to a device.</title>
      <link>https://community.cisco.com/t5/network-platform-api/api-to-add-network-to-a-device/m-p/5422556#M3693</link>
      <description>&lt;P&gt;I'm working on some automation scripting and have figured out most of what I need except I can't figure out how to connect a network to a device.  I have a script to get the details of an existing device and it shows a "networkId": "L_XXXXXXXXXXXXXX".&lt;/P&gt;&lt;P&gt;"networkID" is not listed in the schema on &lt;A href="https://developer.cisco.com/meraki/api-v1/update-device/" target="_blank" rel="nofollow noopener noreferrer"&gt;Update Device - Meraki Dashboard API v1 - Cisco Meraki Developer Hub&lt;/A&gt; so is this possible to do or is there another API call I should be using instead?&lt;/P&gt;&lt;P&gt;If I try to update a device with a PUT and using a "networkId": "L_YYYYYYYYYYYYY" I get&lt;/P&gt;&lt;P&gt;Status Code: 400&lt;BR /&gt;Response Text: {"errors":["Error for /devices/{serial}: None of the fields ('name', 'tags', 'lat', 'lng', 'address', 'notes', 'moveMapMarker', 'switchProfileId' or 'floorPlanId') were specified."]}&lt;/P&gt;</description>
      <pubDate>Mon, 08 Dec 2025 18:39:30 GMT</pubDate>
      <guid>https://community.cisco.com/t5/network-platform-api/api-to-add-network-to-a-device/m-p/5422556#M3693</guid>
      <dc:creator>orrellb</dc:creator>
      <dc:date>2025-12-08T18:39:30Z</dc:date>
    </item>
    <item>
      <title>Re: API to add network to a device.</title>
      <link>https://community.cisco.com/t5/network-platform-api/api-to-add-network-to-a-device/m-p/5422557#M3694</link>
      <description>&lt;P&gt;You will have to remove it from the existing network &lt;A href="https://developer.cisco.com/meraki/api-v1/remove-network-devices/" target="_blank" rel="nofollow noopener noreferrer"&gt;https://developer.cisco.com/meraki/api-v1/remove-network-devices/&lt;/A&gt; back into inventory and then assign it to the new network using &lt;A href="https://developer.cisco.com/meraki/api-v1/claim-network-devices/" target="_blank" rel="nofollow noopener noreferrer"&gt;https://developer.cisco.com/meraki/api-v1/claim-network-devices/&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 08 Dec 2025 18:46:33 GMT</pubDate>
      <guid>https://community.cisco.com/t5/network-platform-api/api-to-add-network-to-a-device/m-p/5422557#M3694</guid>
      <dc:creator>dajirku</dc:creator>
      <dc:date>2025-12-08T18:46:33Z</dc:date>
    </item>
    <item>
      <title>Re: API to add network to a device.</title>
      <link>https://community.cisco.com/t5/network-platform-api/api-to-add-network-to-a-device/m-p/5422558#M3695</link>
      <description>&lt;P&gt;The network and device I'm testing with are not part joined to any other device/network yet.  In the example above I am able to see the 'networkId' if I look at an existing device that is already setup. &lt;/P&gt;&lt;P&gt;In the link you posted that shows 'networkId' as required but does not show that field in any of the examples or Schema Definition.  That page looks the same as &lt;A href="https://developer.cisco.com/meraki/api-v1/claim-into-organization-inventory/" target="_blank" rel="nofollow noopener noreferrer"&gt;Claim Into Organization Inventory - Meraki Dashboard API v1 - Cisco Meraki Developer Hub&lt;/A&gt; to Claim a device into the inventory. I already have it in my inventory I just need to link it with a network. &lt;/P&gt;</description>
      <pubDate>Mon, 08 Dec 2025 19:22:56 GMT</pubDate>
      <guid>https://community.cisco.com/t5/network-platform-api/api-to-add-network-to-a-device/m-p/5422558#M3695</guid>
      <dc:creator>orrellb</dc:creator>
      <dc:date>2025-12-08T19:22:56Z</dc:date>
    </item>
    <item>
      <title>Re: API to add network to a device.</title>
      <link>https://community.cisco.com/t5/network-platform-api/api-to-add-network-to-a-device/m-p/5422559#M3696</link>
      <description>&lt;P&gt;Oh I just spotted the 'networkId' as part of the API path.  Let me test that.&lt;/P&gt;</description>
      <pubDate>Mon, 08 Dec 2025 19:25:24 GMT</pubDate>
      <guid>https://community.cisco.com/t5/network-platform-api/api-to-add-network-to-a-device/m-p/5422559#M3696</guid>
      <dc:creator>orrellb</dc:creator>
      <dc:date>2025-12-08T19:25:24Z</dc:date>
    </item>
    <item>
      <title>Re: API to add network to a device.</title>
      <link>https://community.cisco.com/t5/network-platform-api/api-to-add-network-to-a-device/m-p/5422560#M3697</link>
      <description>&lt;P&gt;That worked.   Thanks&lt;/P&gt;&lt;P&gt;The title 'Claim Network Devices' sounds way too similar to the other document of trying to claim it into the Inventory. &lt;/P&gt;</description>
      <pubDate>Mon, 08 Dec 2025 19:34:30 GMT</pubDate>
      <guid>https://community.cisco.com/t5/network-platform-api/api-to-add-network-to-a-device/m-p/5422560#M3697</guid>
      <dc:creator>orrellb</dc:creator>
      <dc:date>2025-12-08T19:34:30Z</dc:date>
    </item>
    <item>
      <title>Re: API to add network to a device.</title>
      <link>https://community.cisco.com/t5/network-platform-api/api-to-add-network-to-a-device/m-p/5422561#M3698</link>
      <description>&lt;P&gt;bingo &lt;SPAN class="lia-unicode-emoji" title=":winking_face:"&gt;&lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/SPAN&gt; glad it worked! That construct of the API path being part of the context for the action is consistent in the API&lt;/P&gt;</description>
      <pubDate>Mon, 08 Dec 2025 19:51:07 GMT</pubDate>
      <guid>https://community.cisco.com/t5/network-platform-api/api-to-add-network-to-a-device/m-p/5422561#M3698</guid>
      <dc:creator>dajirku</dc:creator>
      <dc:date>2025-12-08T19:51:07Z</dc:date>
    </item>
  </channel>
</rss>

