Update the rest api