Update rest_api_functions.py