Updated the call to push data into the API