<?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: API problems with update SSID in Wireless</title>
    <link>https://community.cisco.com/t5/wireless/api-problems-with-update-ssid/m-p/5473947#M293389</link>
    <description>&lt;P&gt;&lt;A href="https://community.meraki.com/t5/user/viewprofilepage/user-id/340"&gt;@Philip D'Ath&lt;/A&gt; is correct.&lt;BR /&gt;To further the answer, it's because when performing the GET request, you're getting all attributes of the SSID - some of which are NULL as they have not been configured or are not applicable/configurable.&lt;/P&gt;&lt;P&gt;When sending that configuration back into a PUT, you're sending NULL values for attributes which are NULL by default but require a valid value for configuring (or are not configurable) - hence "&lt;SPAN&gt;radiusFailoverPolicy' must be a string"&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;You'll need to parse out some values from the GET request (such as NULL's) and ignore them rather than trying to send them into the PUT request.&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 28 Jun 2023 23:27:45 GMT</pubDate>
    <dc:creator>Brash</dc:creator>
    <dc:date>2023-06-28T23:27:45Z</dc:date>
    <item>
      <title>API problems with update SSID</title>
      <link>https://community.cisco.com/t5/wireless/api-problems-with-update-ssid/m-p/5473945#M293387</link>
      <description>&lt;P&gt;Hello,&lt;BR /&gt;&lt;BR /&gt;I am trying to build a script that copies SSID info from one network and updates another network with that info.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;PUT endpint&lt;/P&gt;&lt;DIV&gt;&lt;PRE&gt;&lt;SPAN&gt;https://api.meraki.com/api/v1/networks/&lt;/SPAN&gt;&lt;SPAN&gt;{&lt;/SPAN&gt;destination_id&lt;SPAN&gt;}&lt;/SPAN&gt;&lt;SPAN&gt;/wireless/ssids/&lt;/SPAN&gt;&lt;SPAN&gt;{&lt;/SPAN&gt;ssid[&lt;SPAN&gt;'number'&lt;/SPAN&gt;]&lt;SPAN&gt;}&lt;/SPAN&gt;&lt;/PRE&gt;&lt;/DIV&gt;&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;It seems to work ok with PSK SSIDS but on one which is Enterprise with Radius - it has problems.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;The first error was "encryptionMode' must be one of: 'wep' or 'wpa"&lt;BR /&gt;I found this that advised just removing that key:&lt;BR /&gt;&lt;A href="https://community.meraki.com/t5/Wireless-LAN/quot-Update-the-attributes-of-an-SSID-quot-AP-endpoint-broken/m-p/61491" target="_blank"&gt;https://community.meraki.com/t5/Wireless-LAN/quot-Update-the-attributes-of-an-SSID-quot-AP-endpoint-broken/m-p/61491&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Which I did, but then I got another error {'errors': ["'radiusFailoverPolicy' must be a string"]}&lt;BR /&gt;&lt;BR /&gt;I don't understand why I am getting these errors, if the fields are correct for the network I copied from, why is the API saying they are wrong when I try to copy to a network?&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;API payload data:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample language-python"&gt;&lt;CODE&gt;{
    "number": 0,
    "name": "Redacted",
    "enabled": true,
    "splashPage": "None",
    "ssidAdminAccessible": false,
    "authMode": "8021x-radius",
    "dot11w": {
        "enabled": true,
        "required": true
    },
    "dot11r": {
        "enabled": false,
        "adaptive": false
    },
    "encryptionMode": "wpa-eap",
    "wpaEncryptionMode": "WPA2 only",
    "radiusServers": [
        {
            "host": "0.0.0.0",
            "port": 0000,
            "id": "000000000000000000",
            "openRoamingCertificateId": null,
            "caCertificate": null
        },
        {
            "host": "0.0.0.0",
            "port": 0000,
            "id": "000000000000000000",
            "openRoamingCertificateId": null,
            "caCertificate": null
        }
    ],
    "radiusAccountingEnabled": false,
    "radiusTestingEnabled": false,
    "radiusServerTimeout": 1,
    "radiusServerAttemptsLimit": 3,
    "radiusFallbackEnabled": false,
    "radiusProxyEnabled": false,
    "radiusCoaEnabled": false,
    "radiusCalledStationId": "$NODE_MAC$:$VAP_NAME$",
    "radiusAuthenticationNasId": "$NODE_MAC$:$VAP_NUM$",
    "radiusAttributeForGroupPolicies": "Filter-Id",
    "radiusFailoverPolicy": null,
    "radiusLoadBalancingPolicy": null,
    "ipAssignmentMode": "Bridge mode",
    "useVlanTagging": true,
    "defaultVlanId": 0000,
    "radiusOverride": false,
    "minBitrate": 11,
    "bandSelection": "Dual band operation",
    "perClientBandwidthLimitUp": 0,
    "perClientBandwidthLimitDown": 0,
    "perSsidBandwidthLimitUp": 0,
    "perSsidBandwidthLimitDown": 0,
    "mandatoryDhcpEnabled": false,
    "lanIsolationEnabled": false,
    "visible": true,
    "availableOnAllAps": true,
    "availabilityTags": [],
    "speedBurst": {
        "enabled": false
    }
}&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 28 Jun 2023 08:46:13 GMT</pubDate>
      <guid>https://community.cisco.com/t5/wireless/api-problems-with-update-ssid/m-p/5473945#M293387</guid>
      <dc:creator>Adrian41</dc:creator>
      <dc:date>2023-06-28T08:46:13Z</dc:date>
    </item>
    <item>
      <title>Re: API problems with update SSID</title>
      <link>https://community.cisco.com/t5/wireless/api-problems-with-update-ssid/m-p/5473946#M293388</link>
      <description>&lt;P&gt;I think the "GET" method is returning additional non-configurable information, which you must remove if you want to do a PUT.&lt;/P&gt;</description>
      <pubDate>Wed, 28 Jun 2023 20:20:35 GMT</pubDate>
      <guid>https://community.cisco.com/t5/wireless/api-problems-with-update-ssid/m-p/5473946#M293388</guid>
      <dc:creator>Philip D'Ath</dc:creator>
      <dc:date>2023-06-28T20:20:35Z</dc:date>
    </item>
    <item>
      <title>Re: API problems with update SSID</title>
      <link>https://community.cisco.com/t5/wireless/api-problems-with-update-ssid/m-p/5473947#M293389</link>
      <description>&lt;P&gt;&lt;A href="https://community.meraki.com/t5/user/viewprofilepage/user-id/340"&gt;@Philip D'Ath&lt;/A&gt; is correct.&lt;BR /&gt;To further the answer, it's because when performing the GET request, you're getting all attributes of the SSID - some of which are NULL as they have not been configured or are not applicable/configurable.&lt;/P&gt;&lt;P&gt;When sending that configuration back into a PUT, you're sending NULL values for attributes which are NULL by default but require a valid value for configuring (or are not configurable) - hence "&lt;SPAN&gt;radiusFailoverPolicy' must be a string"&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;You'll need to parse out some values from the GET request (such as NULL's) and ignore them rather than trying to send them into the PUT request.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 28 Jun 2023 23:27:45 GMT</pubDate>
      <guid>https://community.cisco.com/t5/wireless/api-problems-with-update-ssid/m-p/5473947#M293389</guid>
      <dc:creator>Brash</dc:creator>
      <dc:date>2023-06-28T23:27:45Z</dc:date>
    </item>
  </channel>
</rss>

