Documentation
README
UniFi Clients and Devices
Day-to-day operations, and the two ways they go wrong: partial writes that silently destroy config, and VLAN changes that appear to work and do not.
Full-object PUT discipline
The rule that prevents most damage on this API:
rest/*endpoints replace the object. GET it, modify the one field, PUT the whole thing back.
A partial PUT does not merge. It writes what you sent and drops the rest. The consequences scale with the object:
This is the opening of the README. Read the full README on GitHub.