use REST API to update the app