I am trying to change some settings using the API. Specifically, I am trying to enable/disable an ssid programmatically.
I can get all of the ssids using the following call:
curl --location 'https://192.168.50.1/api/config.ssid.profile' --header 'Cookie: bauth=<redacted>'
Response:
{
"stat": "ok",
"response": {
"order": [
1
],
"1": {
"name": "<redacted>",
"enable": true,
"incontrolManaged": false,
"broadcast": true,
"wifi6": {
"support": true,
"enable": true
},
"dataRateMode": "auto",
"dataRate": "auto",
"multicast": {
"filter": false,
"rate": "MCS8/MCS0/6M"
},
"igmp": false,
"layer2Isolation": false,
"frequency": [
"2.4GHz",
"5GHz"
],
"maxClient": {
"2400mhz": 0,
"5000mhz": 0
},
"security": {
"policy": "WPA2 Personal",
"detail": {
"auto": false,
"key": "<redacted>",
"fastTransition": false
},
"wpa2Personal": {
"auto": false,
"key": "<redacted>",
"fastTransition": false
}
},
"accessControl": {
"mode": "none"
},
"guestProtect": {
"blockPrivateIp": false
}
}
}
}
But when I try to disable using the following command, I get a response back, but the ssid isn’t enabled.
curl --location 'https://192.168.50.1/api/config.ssid.profile' \
--header 'Content-Type: application/json' \
--header 'Cookie: bauth=<redacted>' \
--data '{
"action": "update",
"id": "1",
"enable": false
}'
Any idea what I am doing wrong? Is there logs somewhere that could point out the issue?