<?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: Trying to update SSID PSK receiving 404 in Network Platform API</title>
    <link>https://community.cisco.com/t5/network-platform-api/trying-to-update-ssid-psk-receiving-404/m-p/5404022#M1026</link>
    <description>&lt;P&gt;No problem &lt;SPAN class="lia-unicode-emoji" title=":grinning_face_with_big_eyes:"&gt;&lt;span class="lia-unicode-emoji" title=":grinning_face_with_big_eyes:"&gt;😃&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;sometimes the issues are in the smallest mistakes ^^&lt;/P&gt;</description>
    <pubDate>Wed, 16 Mar 2022 19:46:26 GMT</pubDate>
    <dc:creator>Greenberet</dc:creator>
    <dc:date>2022-03-16T19:46:26Z</dc:date>
    <item>
      <title>Trying to update SSID PSK receiving 404</title>
      <link>https://community.cisco.com/t5/network-platform-api/trying-to-update-ssid-psk-receiving-404/m-p/5404015#M1019</link>
      <description>&lt;P&gt;I can successfully call and get the data from getting a specific SSID network details, when i try to update the password {psk} i get a 404. Below is a snippet of the powershell code i am trying,&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;$deviceAPIUri&lt;/SPAN&gt;&lt;SPAN&gt; = &lt;/SPAN&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;SPAN&gt;$baseUrl$dashboardAPIVersion&lt;/SPAN&gt;&lt;SPAN&gt;/networks/&lt;/SPAN&gt;&lt;SPAN&gt;$MYNETWORK_ID&lt;/SPAN&gt;&lt;SPAN&gt;/wireless/ssids/&lt;/SPAN&gt;&lt;SPAN&gt;$GUEST_ID&lt;/SPAN&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;$response&lt;/SPAN&gt;&lt;SPAN&gt; = &lt;/SPAN&gt;&lt;SPAN&gt;Invoke-WebRequest&lt;/SPAN&gt;&lt;SPAN&gt; -Uri &lt;/SPAN&gt;&lt;SPAN&gt;$deviceAPIUri&lt;/SPAN&gt;&lt;SPAN&gt; -Method GET -Headers &lt;/SPAN&gt;&lt;SPAN&gt;$headers&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt; &lt;/DIV&gt;&lt;DIV&gt; &lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;#&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;# Check if Guest&lt;/SPAN&gt;&lt;/DIV&gt;&lt;BR /&gt;&lt;DIV&gt;&lt;SPAN&gt;if&lt;/SPAN&gt;&lt;SPAN&gt; (&lt;/SPAN&gt;&lt;SPAN&gt;$response&lt;/SPAN&gt;&lt;SPAN&gt;.StatusCode&lt;/SPAN&gt;&lt;SPAN&gt; -eq &lt;/SPAN&gt;&lt;SPAN&gt;200&lt;/SPAN&gt;&lt;SPAN&gt; ){&lt;/SPAN&gt;&lt;/DIV&gt;&lt;BR /&gt;&lt;DIV&gt; &lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;$ssidConfig&lt;/SPAN&gt;&lt;SPAN&gt; = &lt;/SPAN&gt;&lt;SPAN&gt;$response&lt;/SPAN&gt;&lt;SPAN&gt; | &lt;/SPAN&gt;&lt;SPAN&gt;ConvertFrom-Json&lt;/SPAN&gt;&lt;/DIV&gt;&lt;BR /&gt;&lt;DIV&gt;&lt;SPAN&gt;$ssidConfig&lt;/SPAN&gt;&lt;SPAN&gt;.psk&lt;/SPAN&gt;&lt;SPAN&gt; = &lt;/SPAN&gt;&lt;SPAN&gt;"HelloThere"&lt;/SPAN&gt;&lt;/DIV&gt;&lt;BR /&gt;&lt;DIV&gt;&lt;SPAN&gt;#&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;#create JSON body with data to update. &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;$body&lt;/SPAN&gt;&lt;SPAN&gt; = (&lt;/SPAN&gt;&lt;SPAN&gt;ConvertTo-Json&lt;/SPAN&gt; &lt;SPAN&gt;$ssidConfig&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;BR /&gt;&lt;DIV&gt;&lt;SPAN&gt;Write-Host&lt;/SPAN&gt; &lt;SPAN&gt;$body&lt;/SPAN&gt;&lt;/DIV&gt;&lt;BR /&gt;&lt;DIV&gt;&lt;SPAN&gt;$response1&lt;/SPAN&gt;&lt;SPAN&gt; = &lt;/SPAN&gt;&lt;SPAN&gt;Invoke-RestMethod&lt;/SPAN&gt;&lt;SPAN&gt; -Uri &lt;/SPAN&gt;&lt;SPAN&gt;$deviceAPIUri&lt;/SPAN&gt;&lt;SPAN&gt; -Method POST -Headers &lt;/SPAN&gt;&lt;SPAN&gt;$headers&lt;/SPAN&gt;&lt;SPAN&gt; -Body &lt;/SPAN&gt;&lt;SPAN&gt;$body&lt;/SPAN&gt;&lt;/DIV&gt;&lt;BR /&gt;&lt;DIV&gt;&lt;SPAN&gt;write-host&lt;/SPAN&gt; &lt;SPAN&gt;$response1&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt; &lt;/DIV&gt;&lt;DIV&gt; &lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Please help. I have been able to use powershell and interact with the dashboard API without fail... until now.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Sun, 13 Mar 2022 20:57:47 GMT</pubDate>
      <guid>https://community.cisco.com/t5/network-platform-api/trying-to-update-ssid-psk-receiving-404/m-p/5404015#M1019</guid>
      <dc:creator>smeyer1</dc:creator>
      <dc:date>2022-03-13T20:57:47Z</dc:date>
    </item>
    <item>
      <title>Re: Trying to update SSID PSK receiving 404</title>
      <link>https://community.cisco.com/t5/network-platform-api/trying-to-update-ssid-psk-receiving-404/m-p/5404016#M1020</link>
      <description>&lt;P&gt;You are probably adding empty data from the "full" get result.&lt;/P&gt;&lt;P&gt;If you just want to change the SSID, then just change the SSID&lt;/P&gt;&lt;P&gt;json body:&lt;/P&gt;&lt;PRE class="lia-code-sample language-python"&gt;&lt;CODE&gt;{'psk': 'HelloThere'}&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sun, 13 Mar 2022 22:43:37 GMT</pubDate>
      <guid>https://community.cisco.com/t5/network-platform-api/trying-to-update-ssid-psk-receiving-404/m-p/5404016#M1020</guid>
      <dc:creator>Greenberet</dc:creator>
      <dc:date>2022-03-13T22:43:37Z</dc:date>
    </item>
    <item>
      <title>Re: Trying to update SSID PSK receiving 404</title>
      <link>https://community.cisco.com/t5/network-platform-api/trying-to-update-ssid-psk-receiving-404/m-p/5404017#M1021</link>
      <description>&lt;P&gt;I changed code to just send psk with same results. I get a 404 not found.  The new json body: {"psk": "hello"}&lt;/P&gt;</description>
      <pubDate>Sun, 13 Mar 2022 23:28:53 GMT</pubDate>
      <guid>https://community.cisco.com/t5/network-platform-api/trying-to-update-ssid-psk-receiving-404/m-p/5404017#M1021</guid>
      <dc:creator>smeyer1</dc:creator>
      <dc:date>2022-03-13T23:28:53Z</dc:date>
    </item>
    <item>
      <title>Re: Trying to update SSID PSK receiving 404</title>
      <link>https://community.cisco.com/t5/network-platform-api/trying-to-update-ssid-psk-receiving-404/m-p/5404018#M1022</link>
      <description>&lt;P&gt;I'm not sure about the response here and can't test it at the moment, but "hello" is to short for a psk. "HelloThere" did work fine for me&lt;/P&gt;</description>
      <pubDate>Mon, 14 Mar 2022 11:43:00 GMT</pubDate>
      <guid>https://community.cisco.com/t5/network-platform-api/trying-to-update-ssid-psk-receiving-404/m-p/5404018#M1022</guid>
      <dc:creator>Greenberet</dc:creator>
      <dc:date>2022-03-14T11:43:00Z</dc:date>
    </item>
    <item>
      <title>Re: Trying to update SSID PSK receiving 404</title>
      <link>https://community.cisco.com/t5/network-platform-api/trying-to-update-ssid-psk-receiving-404/m-p/5404019#M1023</link>
      <description>&lt;P&gt;I updated to HelloThere and still receiving the 404.  What is strange is the GET works without fail. It is only the post. &lt;/P&gt;</description>
      <pubDate>Mon, 14 Mar 2022 11:50:57 GMT</pubDate>
      <guid>https://community.cisco.com/t5/network-platform-api/trying-to-update-ssid-psk-receiving-404/m-p/5404019#M1023</guid>
      <dc:creator>smeyer1</dc:creator>
      <dc:date>2022-03-14T11:50:57Z</dc:date>
    </item>
    <item>
      <title>Re: Trying to update SSID PSK receiving 404</title>
      <link>https://community.cisco.com/t5/network-platform-api/trying-to-update-ssid-psk-receiving-404/m-p/5404020#M1024</link>
      <description>&lt;P&gt;Found your issue... You have to use PUT and not POST&lt;/P&gt;&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Greenberet_0-1647267265606.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/262585i7273367666D2CD1B/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, 14 Mar 2022 14:14:34 GMT</pubDate>
      <guid>https://community.cisco.com/t5/network-platform-api/trying-to-update-ssid-psk-receiving-404/m-p/5404020#M1024</guid>
      <dc:creator>Greenberet</dc:creator>
      <dc:date>2022-03-14T14:14:34Z</dc:date>
    </item>
    <item>
      <title>Re: Trying to update SSID PSK receiving 404</title>
      <link>https://community.cisco.com/t5/network-platform-api/trying-to-update-ssid-psk-receiving-404/m-p/5404021#M1025</link>
      <description>&lt;P&gt;Thank you so much... missed that.&lt;/P&gt;</description>
      <pubDate>Mon, 14 Mar 2022 14:17:25 GMT</pubDate>
      <guid>https://community.cisco.com/t5/network-platform-api/trying-to-update-ssid-psk-receiving-404/m-p/5404021#M1025</guid>
      <dc:creator>smeyer1</dc:creator>
      <dc:date>2022-03-14T14:17:25Z</dc:date>
    </item>
    <item>
      <title>Re: Trying to update SSID PSK receiving 404</title>
      <link>https://community.cisco.com/t5/network-platform-api/trying-to-update-ssid-psk-receiving-404/m-p/5404022#M1026</link>
      <description>&lt;P&gt;No problem &lt;SPAN class="lia-unicode-emoji" title=":grinning_face_with_big_eyes:"&gt;&lt;span class="lia-unicode-emoji" title=":grinning_face_with_big_eyes:"&gt;😃&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;sometimes the issues are in the smallest mistakes ^^&lt;/P&gt;</description>
      <pubDate>Wed, 16 Mar 2022 19:46:26 GMT</pubDate>
      <guid>https://community.cisco.com/t5/network-platform-api/trying-to-update-ssid-psk-receiving-404/m-p/5404022#M1026</guid>
      <dc:creator>Greenberet</dc:creator>
      <dc:date>2022-03-16T19:46:26Z</dc:date>
    </item>
  </channel>
</rss>

