<?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 Feature Request: Add DELETE Endpoint for Device Removal in Network Platform API</title>
    <link>https://community.cisco.com/t5/network-platform-api/feature-request-add-delete-endpoint-for-device-removal/m-p/5443166#M6707</link>
    <description>&lt;P&gt;&lt;STRONG&gt;Current Behavior:&lt;/STRONG&gt; The current Meraki API uses a POST request to /networks/{networkId}/devices/remove to remove a device, with the device serial included in the request body.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Expected Behavior:&lt;/STRONG&gt; To align with RESTful API design principles, it would be beneficial to have a DELETE endpoint for removing devices. A proposed endpoint might be: DELETE /networks/{networkId}/devices/{serial}&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;In this design, the serial would be included in the URL path, making it more intuitive and in line with common RESTful practices.&lt;BR /&gt;&lt;BR /&gt;This also would allow for &lt;A href="https://github.com/cisco-open/terraform-provider-meraki/blob/a09718430d27398a3f592458478f89edff314027/internal/provider/resource_meraki_networks_devices_claim.go#L132" target="_self" rel="nofollow noopener noreferrer"&gt;terraform-provider-meraki to implement Delete easily&lt;/A&gt; on the resource.&lt;/P&gt;</description>
    <pubDate>Mon, 12 Aug 2024 21:50:16 GMT</pubDate>
    <dc:creator>zbuchheit</dc:creator>
    <dc:date>2024-08-12T21:50:16Z</dc:date>
    <item>
      <title>Feature Request: Add DELETE Endpoint for Device Removal</title>
      <link>https://community.cisco.com/t5/network-platform-api/feature-request-add-delete-endpoint-for-device-removal/m-p/5443166#M6707</link>
      <description>&lt;P&gt;&lt;STRONG&gt;Current Behavior:&lt;/STRONG&gt; The current Meraki API uses a POST request to /networks/{networkId}/devices/remove to remove a device, with the device serial included in the request body.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Expected Behavior:&lt;/STRONG&gt; To align with RESTful API design principles, it would be beneficial to have a DELETE endpoint for removing devices. A proposed endpoint might be: DELETE /networks/{networkId}/devices/{serial}&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;In this design, the serial would be included in the URL path, making it more intuitive and in line with common RESTful practices.&lt;BR /&gt;&lt;BR /&gt;This also would allow for &lt;A href="https://github.com/cisco-open/terraform-provider-meraki/blob/a09718430d27398a3f592458478f89edff314027/internal/provider/resource_meraki_networks_devices_claim.go#L132" target="_self" rel="nofollow noopener noreferrer"&gt;terraform-provider-meraki to implement Delete easily&lt;/A&gt; on the resource.&lt;/P&gt;</description>
      <pubDate>Mon, 12 Aug 2024 21:50:16 GMT</pubDate>
      <guid>https://community.cisco.com/t5/network-platform-api/feature-request-add-delete-endpoint-for-device-removal/m-p/5443166#M6707</guid>
      <dc:creator>zbuchheit</dc:creator>
      <dc:date>2024-08-12T21:50:16Z</dc:date>
    </item>
    <item>
      <title>Re: Feature Request: Add DELETE Endpoint for Device Removal</title>
      <link>https://community.cisco.com/t5/network-platform-api/feature-request-add-delete-endpoint-for-device-removal/m-p/5443167#M6708</link>
      <description>&lt;P&gt;That makes complete sense - but changing it now would be a breaking change.&lt;/P&gt;</description>
      <pubDate>Tue, 13 Aug 2024 11:15:37 GMT</pubDate>
      <guid>https://community.cisco.com/t5/network-platform-api/feature-request-add-delete-endpoint-for-device-removal/m-p/5443167#M6708</guid>
      <dc:creator>Philip D'Ath</dc:creator>
      <dc:date>2024-08-13T11:15:37Z</dc:date>
    </item>
    <item>
      <title>Re: Feature Request: Add DELETE Endpoint for Device Removal</title>
      <link>https://community.cisco.com/t5/network-platform-api/feature-request-add-delete-endpoint-for-device-removal/m-p/5443168#M6709</link>
      <description>&lt;P&gt;I was afraid that would be the answer, but understand. Thanks for the quick reply! &lt;SPAN class="lia-unicode-emoji" title=":smiling_face_with_smiling_eyes:"&gt;&lt;span class="lia-unicode-emoji" title=":smiling_face_with_smiling_eyes:"&gt;😊&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 13 Aug 2024 15:41:06 GMT</pubDate>
      <guid>https://community.cisco.com/t5/network-platform-api/feature-request-add-delete-endpoint-for-device-removal/m-p/5443168#M6709</guid>
      <dc:creator>zbuchheit</dc:creator>
      <dc:date>2024-08-13T15:41:06Z</dc:date>
    </item>
    <item>
      <title>Re: Feature Request: Add DELETE Endpoint for Device Removal</title>
      <link>https://community.cisco.com/t5/network-platform-api/feature-request-add-delete-endpoint-for-device-removal/m-p/5443169#M6710</link>
      <description>&lt;P&gt;Thanks for this rec! I'd like to explain why this is not the case, and why similarly, there's no CREATE action for a device.&lt;/P&gt;&lt;P&gt;Devices in this sense refer to the physical hardware, so the concept of CREATING or DELETING a device is awkward. This is unlike a Docker cluster, an EC2 instance, a virtual device of some kind, etc. which could be CREATED or DELETED on a whim, which is where I imagine the expectation arises. &lt;/P&gt;&lt;P&gt;&lt;EM&gt;getDevice&lt;/EM&gt; &amp;amp; &lt;EM&gt;updateDevice&lt;/EM&gt; (or even better, &lt;EM&gt;getOrganizationDevices&lt;/EM&gt; &amp;amp; &lt;EM&gt;updateDevice&lt;/EM&gt;) manage the attributes of the device, but the resource itself is never created or deleted. Although, that would be a pretty powerful operation if it could CREATE an MS355 out of thin air. Sign me up!&lt;/P&gt;&lt;P&gt;Dashboard &lt;EM&gt;claim&lt;/EM&gt; and &lt;EM&gt;release &lt;/EM&gt;operations are represented in API as functional resources, rather than CRUD operations, which is an accurate depiction of what's happening. Forcing functional operations into the format of a CRUD suite can be awkward at best and confusing at worst.&lt;/P&gt;&lt;P&gt;In short, not every REST operation is part of a CRUD suite! I hope this helps.&lt;/P&gt;</description>
      <pubDate>Thu, 22 Aug 2024 20:43:00 GMT</pubDate>
      <guid>https://community.cisco.com/t5/network-platform-api/feature-request-add-delete-endpoint-for-device-removal/m-p/5443169#M6710</guid>
      <dc:creator>John-on-API</dc:creator>
      <dc:date>2024-08-22T20:43:00Z</dc:date>
    </item>
  </channel>
</rss>

