URI uri = newParams().forURL(config.newAPIEndpointURI(UPDATE));
POST request = config.http()
.POST(uri, new PageReader(newRequestCallback(future, new PushSubscription(), config)))
.form("id", id);
for (Map.Entry<String, String> e : connector.parameters().verifyAndGet().entrySet()) {
request.form(e.getKey(), e.getValue());
}
if (name != null && !name.isEmpty()) {
request.form("name", name);
}
applyConfig(request).execute();