Update API, change all API to accept JSON data