Updating API endpoint