connect() never sent back the sessionId returned in the login response body, so all writes (POST/PUT/DELETE) were silently rejected with "Access is unauthorized" while reads worked fine. Also fix _api_set_vlan to PUT the full VLAN object (AOS-Switch v3 rejects partial PUT bodies with HTTP 400). Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>