code: def add_whitelist_entry(self, address, netmask, note=None):
          
          result = self._client.post("{}/whitelist".format(Profile.api_endpoint),
                  data={
                      "address": address,
                      "netmask": netmask,
                      "note": note,
          })
  
          if not 'id' in result:
              raise UnexpectedResponseError("Unexpected response creating whitelist entry!")
  
          return WhitelistEntry(result['id'], self._client, json=result)
docs: Adds a new entry to this user's IP whitelist, if enabled