<?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: Catalyst Center 2.3.7 API for AP Provision Issue in Cisco Catalyst Center</title>
    <link>https://community.cisco.com/t5/cisco-catalyst-center/catalyst-center-2-3-7-api-for-ap-provision-issue/m-p/5264662#M11892</link>
    <description>&lt;P&gt;I was able to get AP provisioning working based upon your input. Thank you very much. &lt;/P&gt;
&lt;P&gt;As a note to anyone that may come across this later this is what I had to do. As noted by &lt;a href="https://community.cisco.com/t5/user/viewprofilepage/user-id/359396"&gt;vgulla@cisco.com&lt;/a&gt;, the AP must be assigned to the site before you can provision it. If it's not in the correct site you will get an error something like this, ""Site fc2e10fc-5ffe-45b3-af8e-50098c868c22 is not associated with APs"&lt;/P&gt;
&lt;P&gt;{&lt;/P&gt;
&lt;P&gt;"networkDevices": [&lt;BR /&gt;{&lt;BR /&gt;"deviceId": "string", &amp;lt;-- This is the UUID of the device you are trying to provision. &lt;BR /&gt;"meshRole": "string" &amp;lt;-- Not required but if it is present it cannot be blank, only accepts "Valid Roles : [MAP,RAP]"&lt;BR /&gt;}&lt;BR /&gt;],&lt;BR /&gt;"rfProfileName": "string", &lt;BR /&gt;"apZoneName": "string", &amp;lt;-- not required&lt;BR /&gt;"siteId": "string" &lt;STRONG&gt;(Need to provide floorId, AP get assigned) &amp;lt;-- This is the UUID of the site&lt;/STRONG&gt;&lt;BR /&gt;}&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;API: /dna/intent/api/v1/networkDevices/assignToSite/apply.&lt;BR /&gt;{&lt;BR /&gt;"deviceIds": ["string"], &amp;lt;-- This is the UUID of the device you are trying to provision. &lt;BR /&gt;"siteId": "string" (Floor Id where the AP gets assigned eg: 'c2e10fc-5ffe-45b3-af8e-50098c868c22') &amp;lt;-- This is the UUID of the site&lt;BR /&gt;}&lt;/P&gt;</description>
    <pubDate>Tue, 25 Feb 2025 13:58:21 GMT</pubDate>
    <dc:creator>shane.carnahan</dc:creator>
    <dc:date>2025-02-25T13:58:21Z</dc:date>
    <item>
      <title>Catalyst Center 2.3.7 API for AP Provision Issue</title>
      <link>https://community.cisco.com/t5/cisco-catalyst-center/catalyst-center-2-3-7-api-for-ap-provision-issue/m-p/5263173#M11850</link>
      <description>&lt;P&gt;I'm running into an issue trying to use the API to provision APs on version 2.3.7.7.&lt;/P&gt;
&lt;P&gt;&lt;A href="https://developer.cisco.com/docs/dna-center/2-3-7/ap-provision/" target="_blank" rel="noopener"&gt;https://developer.cisco.com/docs/dna-center/2-3-7/ap-provision/&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;Per the documentation I need to send the below in the payload.&lt;/P&gt;
&lt;UL style="display: block;"&gt;
&lt;LI class="tree-item guide-line-item"&gt;
&lt;DIV class="horizontal-flex"&gt;&lt;SPAN class="property-title"&gt;&lt;SPAN class=""&gt;customApGroupName&lt;/SPAN&gt;:&lt;/SPAN&gt;&lt;SPAN class="property-type"&gt;string &lt;/SPAN&gt;Custom AP group name&lt;/DIV&gt;
&lt;/LI&gt;
&lt;LI class="tree-item guide-line-item"&gt;
&lt;DIV class="horizontal-flex"&gt;&lt;SPAN class="property-title"&gt;&lt;SPAN class=""&gt;deviceName&lt;/SPAN&gt;&lt;SPAN class="required"&gt;*&lt;/SPAN&gt;:&lt;/SPAN&gt;&lt;SPAN class="property-type"&gt;string &lt;/SPAN&gt;Device name&lt;/DIV&gt;
&lt;/LI&gt;
&lt;LI class="tree-item guide-line-item"&gt;
&lt;DIV class="horizontal-flex"&gt;&lt;SPAN class="property-title"&gt;&lt;SPAN class=""&gt;rfProfile&lt;/SPAN&gt;&lt;SPAN class="required"&gt;*&lt;/SPAN&gt;:&lt;/SPAN&gt;&lt;SPAN class="property-type"&gt;string &lt;/SPAN&gt;Radio frequency profile name&lt;/DIV&gt;
&lt;/LI&gt;
&lt;LI class="tree-item guide-line-item"&gt;
&lt;DIV class="horizontal-flex"&gt;&lt;SPAN class="property-title"&gt;&lt;SPAN class=""&gt;siteNameHierarchy&lt;/SPAN&gt;&lt;SPAN class="required"&gt;*&lt;/SPAN&gt;:&lt;/SPAN&gt;&lt;SPAN class="property-type"&gt;string &lt;/SPAN&gt;Site name hierarchy(ex: Global/...)&lt;/DIV&gt;
&lt;/LI&gt;
&lt;LI class="tree-item guide-line-item"&gt;
&lt;DIV class="horizontal-flex"&gt;&lt;SPAN class="property-title"&gt;&lt;SPAN class=""&gt;type&lt;/SPAN&gt;&lt;SPAN class="required"&gt;*&lt;/SPAN&gt;:&lt;/SPAN&gt;&lt;SPAN class="property-type"&gt;string &lt;/SPAN&gt;ApWirelessConfiguration&lt;/DIV&gt;
&lt;/LI&gt;
&lt;LI class="tree-item guide-line-item"&gt;
&lt;DIV class="horizontal-flex"&gt;&lt;SPAN class="property-title"&gt;&lt;SPAN class=""&gt;customFlexGroupName&lt;/SPAN&gt;:&lt;/SPAN&gt;&lt;SPAN class="property-type"&gt;string[] &lt;/SPAN&gt;["Custom flex group name"]&lt;/DIV&gt;
&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;deviceName, SiteNameHierarchy, and type are required.&lt;/P&gt;
&lt;P&gt;When I send that information to the API I get responses that other items are required.&lt;/P&gt;
&lt;P&gt;2025-02-20 10:03:37,540 - classes.Logger - DEBUG - Status code 400, Request failed due to malformed request syntax: 3802-AP-1. The response text is {"response":{"errorCode":"NCWS14001","message":"Validation Errors in request payload.","errors":[{"errorCode":"NCWS14014","message":"Validation Errors in request payload.","detail":"Site ID is a mandatory parameter."},{"errorCode":"NCWS14008","message":"Validation Errors in request payload.","detail":"networkDevices is a mandatory parameter."}]},"version":"1.0"}&lt;/P&gt;
&lt;P&gt;It's saying that Site ID and networkDevices are also mandatory. I added them into the payload and then it just says it's an invalid JSON.&lt;/P&gt;
&lt;P&gt;2025-02-20 12:04:25,311 - classes.Logger - DEBUG - Status code 400, Request failed due to malformed request syntax: 3802-AP-1. The response text is {"response":{"errorCode":"NCWS70003","message":"Validation failed due to invalid request","detail":"Invalid JSON passed in the request body"},"version":"1.0"}&lt;/P&gt;
&lt;P&gt;Has anyone else had success using the API to provision APs in version 2.3.7.7?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 20 Feb 2025 17:35:17 GMT</pubDate>
      <guid>https://community.cisco.com/t5/cisco-catalyst-center/catalyst-center-2-3-7-api-for-ap-provision-issue/m-p/5263173#M11850</guid>
      <dc:creator>shane.carnahan</dc:creator>
      <dc:date>2025-02-20T17:35:17Z</dc:date>
    </item>
    <item>
      <title>Re: Catalyst Center 2.3.7 API for AP Provision Issue</title>
      <link>https://community.cisco.com/t5/cisco-catalyst-center/catalyst-center-2-3-7-api-for-ap-provision-issue/m-p/5263365#M11855</link>
      <description>&lt;P&gt;could you please share the API and parameters passed&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 21 Feb 2025 08:12:46 GMT</pubDate>
      <guid>https://community.cisco.com/t5/cisco-catalyst-center/catalyst-center-2-3-7-api-for-ap-provision-issue/m-p/5263365#M11855</guid>
      <dc:creator>vgulla@cisco.com</dc:creator>
      <dc:date>2025-02-21T08:12:46Z</dc:date>
    </item>
    <item>
      <title>Re: Catalyst Center 2.3.7 API for AP Provision Issue</title>
      <link>https://community.cisco.com/t5/cisco-catalyst-center/catalyst-center-2-3-7-api-for-ap-provision-issue/m-p/5263401#M11857</link>
      <description>&lt;P&gt;Just off the doc, i see it says&amp;nbsp;&lt;SPAN&gt;APProvisionRequest[] - so you need to pass an array here. Try a payloads like&lt;/SPAN&gt;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;[
    {
        "type": "ApWirelessConfiguration",
        "deviceName": "3802-AP-1",
        "siteNameHierarchy": "Global/...",
        "rfProfile": "your-rf-profile",
        "customApGroupName": "your-custom-group",
        "customFlexGroupName": ["your-flex-group"]
    }
]&lt;/LI-CODE&gt;
&lt;DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;The error messages you're getting about siteId and networkDevices being mandatory seem to contradict the API documentation.&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;/DIV&gt;</description>
      <pubDate>Fri, 21 Feb 2025 09:24:46 GMT</pubDate>
      <guid>https://community.cisco.com/t5/cisco-catalyst-center/catalyst-center-2-3-7-api-for-ap-provision-issue/m-p/5263401#M11857</guid>
      <dc:creator>bigevilbeard</dc:creator>
      <dc:date>2025-02-21T09:24:46Z</dc:date>
    </item>
    <item>
      <title>Re: Catalyst Center 2.3.7 API for AP Provision Issue</title>
      <link>https://community.cisco.com/t5/cisco-catalyst-center/catalyst-center-2-3-7-api-for-ap-provision-issue/m-p/5263491#M11863</link>
      <description>&lt;DIV style="background-color: #1e1f22; color: #bcbec4;"&gt;
&lt;PRE style="font-family: 'JetBrains Mono',monospace; font-size: 10.5pt;"&gt;I'm using a CSV file as input for the payload. Below is the API URL I'm connecting to. &lt;BR /&gt;url = &lt;SPAN&gt;f'https://&lt;/SPAN&gt;&lt;SPAN&gt;{&lt;/SPAN&gt;server&lt;SPAN&gt;}&lt;/SPAN&gt;&lt;SPAN&gt;/dna/intent/api/v1/wirelessAccessPoints/provision'&lt;/SPAN&gt;&lt;SPAN&gt;&lt;BR /&gt;&lt;/SPAN&gt;headers = {&lt;SPAN&gt;'X-Auth-token'&lt;/SPAN&gt;: token_api, &lt;SPAN&gt;'Content-Type'&lt;/SPAN&gt;: &lt;SPAN&gt;'application/json'&lt;/SPAN&gt;}&lt;BR /&gt;&lt;BR /&gt;This is an line from my csv file. &lt;/PRE&gt;
&lt;TABLE width="1184"&gt;
&lt;TBODY&gt;
&lt;TR&gt;
&lt;TD width="107"&gt;deviceName&lt;/TD&gt;
&lt;TD width="113"&gt;networkDevices&lt;/TD&gt;
&lt;TD width="77"&gt;rfProfile&lt;/TD&gt;
&lt;TD width="272"&gt;siteId&lt;/TD&gt;
&lt;TD width="225"&gt;siteNameHierarchy&lt;/TD&gt;
&lt;TD width="73"&gt;type&lt;/TD&gt;
&lt;TD width="153"&gt;customApGroupName&lt;/TD&gt;
&lt;TD width="164"&gt;customFlexGroupName&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD&gt;3802-AP-1&lt;/TD&gt;
&lt;TD&gt;3802-AP-1&lt;/TD&gt;
&lt;TD&gt;GAMP-001&lt;/TD&gt;
&lt;TD&gt;fc2e10fc-5ffe-45b3-af8e-50098c868c22&lt;/TD&gt;
&lt;TD&gt;Global/Site1/01 - Court&lt;/TD&gt;
&lt;TD&gt;Unified AP&lt;/TD&gt;
&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;
&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;
&lt;PRE style="font-family: 'JetBrains Mono',monospace; font-size: 10.5pt;"&gt;This is how I'm building the payload. &lt;/PRE&gt;
&lt;DIV style="background-color: #1e1f22; color: #bcbec4;"&gt;
&lt;PRE style="font-family: 'JetBrains Mono',monospace; font-size: 10.5pt;"&gt;payload = {&lt;BR /&gt;    &lt;SPAN&gt;"rfProfile"&lt;/SPAN&gt;: &lt;SPAN&gt;str&lt;/SPAN&gt;(row[&lt;SPAN&gt;'rfProfile'&lt;/SPAN&gt;]),&lt;BR /&gt;    &lt;SPAN&gt;"deviceName"&lt;/SPAN&gt;: &lt;SPAN&gt;str&lt;/SPAN&gt;(row[&lt;SPAN&gt;'deviceName'&lt;/SPAN&gt;]),&lt;BR /&gt;    &lt;SPAN&gt;"customApGroupName"&lt;/SPAN&gt;: &lt;SPAN&gt;str&lt;/SPAN&gt;(row[&lt;SPAN&gt;'customApGroupName'&lt;/SPAN&gt;]),&lt;BR /&gt;    &lt;SPAN&gt;"customFlexGroupName"&lt;/SPAN&gt;: [&lt;SPAN&gt;str&lt;/SPAN&gt;(row[&lt;SPAN&gt;'customFlexGroupName'&lt;/SPAN&gt;])],&lt;BR /&gt;    &lt;SPAN&gt;"type"&lt;/SPAN&gt;: &lt;SPAN&gt;str&lt;/SPAN&gt;(row[&lt;SPAN&gt;'type'&lt;/SPAN&gt;]),&lt;BR /&gt;    &lt;SPAN&gt;"siteNameHierarchy"&lt;/SPAN&gt;: &lt;SPAN&gt;str&lt;/SPAN&gt;(row[&lt;SPAN&gt;'siteNameHierarchy'&lt;/SPAN&gt;]),&lt;BR /&gt;    &lt;SPAN&gt;"siteId"&lt;/SPAN&gt;: (row[&lt;SPAN&gt;'siteId'&lt;/SPAN&gt;]),&lt;BR /&gt;    &lt;SPAN&gt;"networkDevices"&lt;/SPAN&gt;: &lt;SPAN&gt;str&lt;/SPAN&gt;(row[&lt;SPAN&gt;'networkDevices'&lt;/SPAN&gt;])&lt;BR /&gt;        }&lt;/PRE&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;</description>
      <pubDate>Fri, 21 Feb 2025 12:44:31 GMT</pubDate>
      <guid>https://community.cisco.com/t5/cisco-catalyst-center/catalyst-center-2-3-7-api-for-ap-provision-issue/m-p/5263491#M11863</guid>
      <dc:creator>shane.carnahan</dc:creator>
      <dc:date>2025-02-21T12:44:31Z</dc:date>
    </item>
    <item>
      <title>Re: Catalyst Center 2.3.7 API for AP Provision Issue</title>
      <link>https://community.cisco.com/t5/cisco-catalyst-center/catalyst-center-2-3-7-api-for-ap-provision-issue/m-p/5263492#M11864</link>
      <description>&lt;P&gt;Yes I do that. I even made sure in the array the types are set to ensure that wasn't the issue. &lt;/P&gt;
&lt;DIV style="background-color: #1e1f22; color: #bcbec4;"&gt;
&lt;PRE style="font-family: 'JetBrains Mono',monospace; font-size: 10.5pt;"&gt;payload = {&lt;BR /&gt;    &lt;SPAN&gt;"rfProfile"&lt;/SPAN&gt;: &lt;SPAN&gt;str&lt;/SPAN&gt;(row[&lt;SPAN&gt;'rfProfile'&lt;/SPAN&gt;]),&lt;BR /&gt;    &lt;SPAN&gt;"deviceName"&lt;/SPAN&gt;: &lt;SPAN&gt;str&lt;/SPAN&gt;(row[&lt;SPAN&gt;'deviceName'&lt;/SPAN&gt;]),&lt;BR /&gt;    &lt;SPAN&gt;"customApGroupName"&lt;/SPAN&gt;: &lt;SPAN&gt;str&lt;/SPAN&gt;(row[&lt;SPAN&gt;'customApGroupName'&lt;/SPAN&gt;]),&lt;BR /&gt;    &lt;SPAN&gt;"customFlexGroupName"&lt;/SPAN&gt;: [&lt;SPAN&gt;str&lt;/SPAN&gt;(row[&lt;SPAN&gt;'customFlexGroupName'&lt;/SPAN&gt;])],&lt;BR /&gt;    &lt;SPAN&gt;"type"&lt;/SPAN&gt;: &lt;SPAN&gt;str&lt;/SPAN&gt;(row[&lt;SPAN&gt;'type'&lt;/SPAN&gt;]),&lt;BR /&gt;    &lt;SPAN&gt;"siteNameHierarchy"&lt;/SPAN&gt;: &lt;SPAN&gt;str&lt;/SPAN&gt;(row[&lt;SPAN&gt;'siteNameHierarchy'&lt;/SPAN&gt;]),&lt;BR /&gt;    &lt;SPAN&gt;"siteId"&lt;/SPAN&gt;: (row[&lt;SPAN&gt;'siteId'&lt;/SPAN&gt;]),&lt;BR /&gt;    &lt;SPAN&gt;"networkDevices"&lt;/SPAN&gt;: &lt;SPAN&gt;str&lt;/SPAN&gt;(row[&lt;SPAN&gt;'networkDevices'&lt;/SPAN&gt;])&lt;BR /&gt;        }&lt;/PRE&gt;
&lt;/DIV&gt;</description>
      <pubDate>Fri, 21 Feb 2025 12:45:49 GMT</pubDate>
      <guid>https://community.cisco.com/t5/cisco-catalyst-center/catalyst-center-2-3-7-api-for-ap-provision-issue/m-p/5263492#M11864</guid>
      <dc:creator>shane.carnahan</dc:creator>
      <dc:date>2025-02-21T12:45:49Z</dc:date>
    </item>
    <item>
      <title>Re: Catalyst Center 2.3.7 API for AP Provision Issue</title>
      <link>https://community.cisco.com/t5/cisco-catalyst-center/catalyst-center-2-3-7-api-for-ap-provision-issue/m-p/5263499#M11865</link>
      <description>&lt;P&gt;There are additional items in here since I was trying to get this to work based upon the error messages.&lt;/P&gt;</description>
      <pubDate>Fri, 21 Feb 2025 13:10:20 GMT</pubDate>
      <guid>https://community.cisco.com/t5/cisco-catalyst-center/catalyst-center-2-3-7-api-for-ap-provision-issue/m-p/5263499#M11865</guid>
      <dc:creator>shane.carnahan</dc:creator>
      <dc:date>2025-02-21T13:10:20Z</dc:date>
    </item>
    <item>
      <title>Re: Catalyst Center 2.3.7 API for AP Provision Issue</title>
      <link>https://community.cisco.com/t5/cisco-catalyst-center/catalyst-center-2-3-7-api-for-ap-provision-issue/m-p/5263550#M11867</link>
      <description>&lt;P&gt;&lt;a href="https://community.cisco.com/t5/user/viewprofilepage/user-id/205672"&gt;@shane.carnahan&lt;/a&gt;&amp;nbsp;i am just taking a guess here, should NetworkDevices be also an array?&lt;/P&gt;</description>
      <pubDate>Fri, 21 Feb 2025 15:07:30 GMT</pubDate>
      <guid>https://community.cisco.com/t5/cisco-catalyst-center/catalyst-center-2-3-7-api-for-ap-provision-issue/m-p/5263550#M11867</guid>
      <dc:creator>bigevilbeard</dc:creator>
      <dc:date>2025-02-21T15:07:30Z</dc:date>
    </item>
    <item>
      <title>Re: Catalyst Center 2.3.7 API for AP Provision Issue</title>
      <link>https://community.cisco.com/t5/cisco-catalyst-center/catalyst-center-2-3-7-api-for-ap-provision-issue/m-p/5263569#M11870</link>
      <description>&lt;P&gt;I just changed it and no good. Still says it's Invalid JSON. &lt;/P&gt;
&lt;DIV style="background-color: #1e1f22; color: #bcbec4;"&gt;
&lt;PRE style="font-family: 'JetBrains Mono',monospace; font-size: 10.5pt;"&gt;payload = {&lt;BR /&gt;    &lt;SPAN&gt;"rfProfile"&lt;/SPAN&gt;: &lt;SPAN&gt;str&lt;/SPAN&gt;(row[&lt;SPAN&gt;'rfProfile'&lt;/SPAN&gt;]),&lt;BR /&gt;    &lt;SPAN&gt;"deviceName"&lt;/SPAN&gt;: &lt;SPAN&gt;str&lt;/SPAN&gt;(row[&lt;SPAN&gt;'deviceName'&lt;/SPAN&gt;]),&lt;BR /&gt;    &lt;SPAN&gt;"customApGroupName"&lt;/SPAN&gt;: &lt;SPAN&gt;str&lt;/SPAN&gt;(row[&lt;SPAN&gt;'customApGroupName'&lt;/SPAN&gt;]),&lt;BR /&gt;    &lt;SPAN&gt;"customFlexGroupName"&lt;/SPAN&gt;: [&lt;SPAN&gt;str&lt;/SPAN&gt;(row[&lt;SPAN&gt;'customFlexGroupName'&lt;/SPAN&gt;])],&lt;BR /&gt;    &lt;SPAN&gt;"type"&lt;/SPAN&gt;: &lt;SPAN&gt;str&lt;/SPAN&gt;(row[&lt;SPAN&gt;'type'&lt;/SPAN&gt;]),&lt;BR /&gt;    &lt;SPAN&gt;"siteNameHierarchy"&lt;/SPAN&gt;: &lt;SPAN&gt;str&lt;/SPAN&gt;(row[&lt;SPAN&gt;'siteNameHierarchy'&lt;/SPAN&gt;]),&lt;BR /&gt;    &lt;SPAN&gt;"siteId"&lt;/SPAN&gt;: (row[&lt;SPAN&gt;'siteId'&lt;/SPAN&gt;]),&lt;BR /&gt;    &lt;SPAN&gt;"networkDevices"&lt;/SPAN&gt;: [&lt;SPAN&gt;str&lt;/SPAN&gt;(row[&lt;SPAN&gt;'networkDevices'&lt;/SPAN&gt;])]&lt;BR /&gt;        }&lt;/PRE&gt;
&lt;/DIV&gt;</description>
      <pubDate>Fri, 21 Feb 2025 16:13:21 GMT</pubDate>
      <guid>https://community.cisco.com/t5/cisco-catalyst-center/catalyst-center-2-3-7-api-for-ap-provision-issue/m-p/5263569#M11870</guid>
      <dc:creator>shane.carnahan</dc:creator>
      <dc:date>2025-02-21T16:13:21Z</dc:date>
    </item>
    <item>
      <title>Re: Catalyst Center 2.3.7 API for AP Provision Issue</title>
      <link>https://community.cisco.com/t5/cisco-catalyst-center/catalyst-center-2-3-7-api-for-ap-provision-issue/m-p/5263574#M11872</link>
      <description>&lt;P&gt;Gahh... could you share what the json.dumps output shows here?&lt;/P&gt;</description>
      <pubDate>Fri, 21 Feb 2025 16:27:37 GMT</pubDate>
      <guid>https://community.cisco.com/t5/cisco-catalyst-center/catalyst-center-2-3-7-api-for-ap-provision-issue/m-p/5263574#M11872</guid>
      <dc:creator>bigevilbeard</dc:creator>
      <dc:date>2025-02-21T16:27:37Z</dc:date>
    </item>
    <item>
      <title>Re: Catalyst Center 2.3.7 API for AP Provision Issue</title>
      <link>https://community.cisco.com/t5/cisco-catalyst-center/catalyst-center-2-3-7-api-for-ap-provision-issue/m-p/5263578#M11873</link>
      <description>&lt;P&gt;2025-02-21 11:36:52,212 - classes.Logger - DEBUG - Payload is {'rfProfile': 'GAMP-001', 'deviceName': '3802-AP-1', 'customApGroupName': '', 'customFlexGroupName': [''], 'type': 'Unified AP', 'siteNameHierarchy': 'Global/Site1/01 - Court', 'siteId': 'fc2e10fc-5ffe-45b3-af8e-50098c868c22', 'networkDevices': ['3802-AP-1']}&lt;BR /&gt;2025-02-21 11:36:52,229 - classes.Logger - DEBUG - Status code 400, Request failed due to malformed request syntax: 3802-AP-1. The response text is {"response":{"errorCode":"NCWS70003","message":"Validation failed due to invalid request","detail":"Invalid JSON passed in the request body"},"version":"1.0"}&lt;BR /&gt;2025-02-21 11:36:52,229 - classes.Logger - DEBUG - Payload is {'rfProfile': 'GAMP-002', 'deviceName': '3802-AP-2', 'customApGroupName': '', 'customFlexGroupName': [''], 'type': 'Unified AP', 'siteNameHierarchy': 'Global/Storrs/Gampel/01 - Court', 'siteId': 'fc2e10fc-5ffe-45b3-af8e-50098c868c22', 'networkDevices': ['3802-AP-2']}&lt;BR /&gt;2025-02-21 11:36:52,239 - classes.Logger - DEBUG - Status code 400, Request failed due to malformed request syntax: 3802-AP-2. The response text is {"response":{"errorCode":"NCWS70003","message":"Validation failed due to invalid request","detail":"Invalid JSON passed in the request body"},"version":"1.0"}&lt;BR /&gt;2025-02-21 11:36:52,239 - classes.Logger - DEBUG - Payload is {'rfProfile': 'GAMP-003', 'deviceName': 'C9120AXI-AP-3', 'customApGroupName': '', 'customFlexGroupName': [''], 'type': 'Unified AP', 'siteNameHierarchy': 'Global/Storrs/Gampel/01 - Court', 'siteId': 'fc2e10fc-5ffe-45b3-af8e-50098c868c22', 'networkDevices': ['C9120AXI-AP-3']}&lt;BR /&gt;2025-02-21 11:36:52,248 - classes.Logger - DEBUG - Status code 400, Request failed due to malformed request syntax: C9120AXI-AP-3. The response text is {"response":{"errorCode":"NCWS70003","message":"Validation failed due to invalid request","detail":"Invalid JSON passed in the request body"},"version":"1.0"}&lt;BR /&gt;2025-02-21 11:36:52,248 - classes.Logger - DEBUG - Payload is {'rfProfile': 'GAMP-004', 'deviceName': 'C9120AXI-AP-4', 'customApGroupName': '', 'customFlexGroupName': [''], 'type': 'Unified AP', 'siteNameHierarchy': 'Global/Storrs/Gampel/01 - Court', 'siteId': 'fc2e10fc-5ffe-45b3-af8e-50098c868c22', 'networkDevices': ['C9120AXI-AP-4']}&lt;BR /&gt;2025-02-21 11:36:52,257 - classes.Logger - DEBUG - Status code 400, Request failed due to malformed request syntax: C9120AXI-AP-4. The response text is {"response":{"errorCode":"NCWS70003","message":"Validation failed due to invalid request","detail":"Invalid JSON passed in the request body"},"version":"1.0"}&lt;/P&gt;</description>
      <pubDate>Fri, 21 Feb 2025 16:37:43 GMT</pubDate>
      <guid>https://community.cisco.com/t5/cisco-catalyst-center/catalyst-center-2-3-7-api-for-ap-provision-issue/m-p/5263578#M11873</guid>
      <dc:creator>shane.carnahan</dc:creator>
      <dc:date>2025-02-21T16:37:43Z</dc:date>
    </item>
    <item>
      <title>Re: Catalyst Center 2.3.7 API for AP Provision Issue</title>
      <link>https://community.cisco.com/t5/cisco-catalyst-center/catalyst-center-2-3-7-api-for-ap-provision-issue/m-p/5263580#M11874</link>
      <description>&lt;P&gt;Just in case anyone is wondering I have used this method to do other things in the API. I can create, update, and delete RF Profiles via this same method for example. I just can't get the provisioning to work. &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 21 Feb 2025 16:43:32 GMT</pubDate>
      <guid>https://community.cisco.com/t5/cisco-catalyst-center/catalyst-center-2-3-7-api-for-ap-provision-issue/m-p/5263580#M11874</guid>
      <dc:creator>shane.carnahan</dc:creator>
      <dc:date>2025-02-21T16:43:32Z</dc:date>
    </item>
    <item>
      <title>Re: Catalyst Center 2.3.7 API for AP Provision Issue</title>
      <link>https://community.cisco.com/t5/cisco-catalyst-center/catalyst-center-2-3-7-api-for-ap-provision-issue/m-p/5263618#M11876</link>
      <description>&lt;P&gt;Excuse the formatting, I think the payload needs to be wrapped in the array&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;payload = [{&lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN&gt;"rfProfile": str(row['rfProfile']), "deviceName": str(row['deviceName']),"customApGroupName": str(row['customApGroupName']), "customFlexGroupName":[str(row['customFlexGroupName'])], "type": str(row['type']), "siteNameHierarchy": str(row['siteNameHierarchy']),"siteId": row['siteId'], "networkDevices": [str(row['networkDevices'])] }]&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;also, not sure about the type,&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;'type' is set to "Unified AP" in your example payload, but the documentation mentions it should be "ApWirelessConfiguration"? I’m not really up to speed on this API, so could be a false flag&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 21 Feb 2025 18:48:32 GMT</pubDate>
      <guid>https://community.cisco.com/t5/cisco-catalyst-center/catalyst-center-2-3-7-api-for-ap-provision-issue/m-p/5263618#M11876</guid>
      <dc:creator>bigevilbeard</dc:creator>
      <dc:date>2025-02-21T18:48:32Z</dc:date>
    </item>
    <item>
      <title>Re: Catalyst Center 2.3.7 API for AP Provision Issue</title>
      <link>https://community.cisco.com/t5/cisco-catalyst-center/catalyst-center-2-3-7-api-for-ap-provision-issue/m-p/5263703#M11877</link>
      <description>&lt;DIV class="g4LWzeT50kmAE5Co3Z1yB"&gt;
&lt;DIV class="_3YI2hG9LntK8IBg-JS432r"&gt;
&lt;DIV class="_1JrwzCAQLt5za56DO6Fepv" style="margin-bottom: 0px;"&gt;This API is used to provision Access Points&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;P&gt;&lt;SPAN&gt;&lt;A href="https://{server}/dna/intent/api/v1/wirelessAccessPoints/provision" target="_blank"&gt;https://{server}/dna/intent/api/v1/wirelessAccessPoints/provision&lt;/A&gt;&lt;/SPAN&gt;&amp;nbsp;&lt;BR /&gt;{&lt;/P&gt;
&lt;P&gt;"networkDevices": [&lt;BR /&gt;{&lt;BR /&gt;"deviceId": "string",&lt;BR /&gt;"meshRole": "string"&lt;BR /&gt;}&lt;BR /&gt;],&lt;BR /&gt;"rfProfileName": "string",&lt;BR /&gt;"apZoneName": "string",&lt;BR /&gt;"siteId": "string" &lt;STRONG&gt;(Need to provide floorId, AP get assigned)&lt;/STRONG&gt;&lt;BR /&gt;}&lt;/P&gt;
&lt;P&gt;Prerequisite: Access Point has to be assigned to the site before get provisioned using the below API&lt;/P&gt;
&lt;DIV class="g4LWzeT50kmAE5Co3Z1yB"&gt;
&lt;DIV class="_3YI2hG9LntK8IBg-JS432r"&gt;
&lt;DIV class="_1JrwzCAQLt5za56DO6Fepv"&gt;API: /dna/intent/api/v1/networkDevices/assignToSite/apply.&lt;BR /&gt;{&lt;BR /&gt;"deviceIds": [&lt;BR /&gt;"string"&lt;BR /&gt;],&lt;BR /&gt;"siteId": "string" (Floor Id where the AP gets assigned eg: 'c2e10fc-5ffe-45b3-af8e-50098c868c22')&lt;BR /&gt;}&lt;/DIV&gt;
&lt;DIV class="_1JrwzCAQLt5za56DO6Fepv"&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV class="_1JrwzCAQLt5za56DO6Fepv"&gt;Provide the deviceId instead of device name in the AP provisioning API&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;</description>
      <pubDate>Fri, 21 Feb 2025 22:35:51 GMT</pubDate>
      <guid>https://community.cisco.com/t5/cisco-catalyst-center/catalyst-center-2-3-7-api-for-ap-provision-issue/m-p/5263703#M11877</guid>
      <dc:creator>vgulla@cisco.com</dc:creator>
      <dc:date>2025-02-21T22:35:51Z</dc:date>
    </item>
    <item>
      <title>Re: Catalyst Center 2.3.7 API for AP Provision Issue</title>
      <link>https://community.cisco.com/t5/cisco-catalyst-center/catalyst-center-2-3-7-api-for-ap-provision-issue/m-p/5264662#M11892</link>
      <description>&lt;P&gt;I was able to get AP provisioning working based upon your input. Thank you very much. &lt;/P&gt;
&lt;P&gt;As a note to anyone that may come across this later this is what I had to do. As noted by &lt;a href="https://community.cisco.com/t5/user/viewprofilepage/user-id/359396"&gt;vgulla@cisco.com&lt;/a&gt;, the AP must be assigned to the site before you can provision it. If it's not in the correct site you will get an error something like this, ""Site fc2e10fc-5ffe-45b3-af8e-50098c868c22 is not associated with APs"&lt;/P&gt;
&lt;P&gt;{&lt;/P&gt;
&lt;P&gt;"networkDevices": [&lt;BR /&gt;{&lt;BR /&gt;"deviceId": "string", &amp;lt;-- This is the UUID of the device you are trying to provision. &lt;BR /&gt;"meshRole": "string" &amp;lt;-- Not required but if it is present it cannot be blank, only accepts "Valid Roles : [MAP,RAP]"&lt;BR /&gt;}&lt;BR /&gt;],&lt;BR /&gt;"rfProfileName": "string", &lt;BR /&gt;"apZoneName": "string", &amp;lt;-- not required&lt;BR /&gt;"siteId": "string" &lt;STRONG&gt;(Need to provide floorId, AP get assigned) &amp;lt;-- This is the UUID of the site&lt;/STRONG&gt;&lt;BR /&gt;}&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;API: /dna/intent/api/v1/networkDevices/assignToSite/apply.&lt;BR /&gt;{&lt;BR /&gt;"deviceIds": ["string"], &amp;lt;-- This is the UUID of the device you are trying to provision. &lt;BR /&gt;"siteId": "string" (Floor Id where the AP gets assigned eg: 'c2e10fc-5ffe-45b3-af8e-50098c868c22') &amp;lt;-- This is the UUID of the site&lt;BR /&gt;}&lt;/P&gt;</description>
      <pubDate>Tue, 25 Feb 2025 13:58:21 GMT</pubDate>
      <guid>https://community.cisco.com/t5/cisco-catalyst-center/catalyst-center-2-3-7-api-for-ap-provision-issue/m-p/5264662#M11892</guid>
      <dc:creator>shane.carnahan</dc:creator>
      <dc:date>2025-02-25T13:58:21Z</dc:date>
    </item>
  </channel>
</rss>

