update the rest_api