Do you have a link to API doc ?
the json is valid... but need to be good with API...
------------------------------
PowerArubaSW : Powershell Module to use Aruba Switch API for Vlan, VlanPorts, LACP, LLDP...
PowerArubaCP: Powershell Module to use ClearPass API (create NAD, Guest...)
PowerArubaCL: Powershell Module to use Aruba Central
PowerArubaCX: Powershell Module to use ArubaCX API (get interface/vlan/ports info)..
ACEP / ACMX #107 / ACDX #1281
------------------------------
Original Message:
Sent: Sep 03, 2021 12:11 PM
From: Roger Ransome
Subject: Activate API - trouble using Curl to move AP into Folder
Hoping someone has figured this out already. I can use Curl to obtain a token, and then use that to query Activate and return details on a specific AP, all good.
However when i try the following to move a single AP into an existing Folder, i'm getting an error.
I think it is seeing the colon in the mac address as a separator, but unsure what the fix for that is...
(mac address and folderId changed for sharing purposes only)
cmd line (from a windows shell)
curl -d "json={"devices" : [{"mac" : "AA:BB:CC:DD:EE:FF","folderId" : "74ce1675-9b03-4a71-a1ad-213d0fce26b3" }]}" -b Activate-cookie.txt https://activate.arubanetworks.com/api/ext/inventory.json?action=update
error output:
{"failure": "Expected a ',' or '}' at character 22 of {devices : [{mac : AA:BB:CC:DD:EE:FF,folderId : 74ce1675-9b03-4a71-a1ad-213d0fce26b3 }]}"}
Thanks in advance for any help.
------------------------------
Roger Ransome
------------------------------