updated edit_api to use uri and not base them off of payload(unsafe)