added update to api