update the HTTP API