11-17-2023 08:21 AM
Can anyone provide an example of updating the AP information using the Cisco prime APIs, and also what XML Format is accepted by Prime?
Im trying to use the webacs/api/v4/op/apService/accessPoint-PUT?_docs, but not sure if its correct, as the response is always 500 for my input.
Ideally I want to update the following two parameters in the api/v4/data/AccessPointDetails page.
<name>
<locationHierarchy>
11-17-2023 09:32 AM
- Try the following :
<?xml version="1.0" encoding="UTF-8"?>
<apCandidate>
<apNames>
<apName>AP-NAME</apName>
</apNames>
<accessPointConfiguration>
<name>NEW-AP-NAME</name>
<locationHierarchy>
<location>
<locationName>NEW-LOCATION-NAME</locationName>
</location>
</locationHierarchy>
</accessPointConfiguration>
</apCandidate>
M.
11-20-2023 06:08 AM
Thank you. It didnt work.
Actually, the API information was correct - /webacs/api/v4/op/apService/accessPoint.
I was posting auth_headers "Content-Type": "application/json", When I should have been using Content-Type": "text/xml",
e.g.,
<?xml version="1.0" ?>
<unifiedApDetailsDTO>
<accessPointId>{}</accessPointId>
<name>{}</name>
<location>{}</location>
<mapLocation>{}</mapLocation>
</unifiedApDetailsDTO>
I want to update the MAP location. Basically, get the AP to show up on a WiFi Map. Is it possible to specify a map using the /webacs/api/v4/op/apService/accessPoint end point? Note, I tried a combination of your suggestion, but that did not work <locationHierarchy><location><locationName>NEW-LOCATION-NAME</locationName></location></locationHierarchy>
11-20-2023 06:26 AM
Just to note, I dont seem to be able to update the following tag:
11-20-2023 06:47 AM
As a reference, here is the code I am writing.
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide