github Art-of-WiFi/UniFi-API-client v2.4.2
API client class v2.4.2

latest release: v2.4.3
one hour ago

Fix: delete_dns_record() and delete_apgroup() threw a TypeError after a successful delete. The controller's
v2 API answers a successful DELETE with an empty response body, which the client could not return as the declared
bool. The record was deleted on the controller, but the call ended with a TypeError, which is not caught by
catch (UnifiApiException $e). Both methods now return true on success. Errors, such as deleting a record that
does not exist, still throw ControllerErrorException.

The same fix applies to custom_api_request() with $return = 'boolean' on a /v2/api/ path.

Full changelog: v2.4.1...v2.4.2

Don't miss a new UniFi-API-client release

NewReleases is sending notifications on new releases.