I'm trying to update DHCP settings under security&sdwan->DHCP via API call to the following end point (not totally sure why the example body is empty in the documentation):
https://developer.cisco.com/meraki/api-v1/#!update-network-appliance-single-lan.
Although the call is returning success code (200), the setting never got really updated.
For example, if the current dhcpLeaseTime is 4 hours and I send the following request:
url = f"https://api.meraki.com/api/v1/networks/{_my_net_id}/appliance/singleLan"
headers = {'Accept': "*/*", 'Content-Type': "application/json", "X-Cisco-Meraki-API-Key": API_KEY}
data = {"subnet":"192.168.128.0/24",
"applianceIp":"192.168.128.1",
"dhcpLeaseTime":"1 day",
}
res = requests.put(url, headers=headers, data=json.dumps(data))
The request will be successful, but the dhcpLeaseTime will never be actually updated. So, the res variable in the last line will still show "4 hours"
what do I miss ?