Art-of-WiFi / UniFi-API-client

A PHP API client class to interact with Ubiquiti's UniFi Controller API
MIT License
1.09k stars 217 forks source link

Enable AP auto-update #226

Open SamKr opened 2 weeks ago

SamKr commented 2 weeks ago

Hi team,

Is it possible to enable 'AP auto-update' through the API and ideally, through your client?

Thanks for sharing this!

malle-pietje commented 2 weeks ago

Yes, the API client supports this. You'll need to use this method: https://github.com/Art-of-WiFi/UniFi-API-client/blob/master/src/Client.php#L1766-L1781

I recommend using the API Browser tool to understand exactly which attributes you need to change in the $payload object/array. My guess is you need to change these attributes: image