update api rate