Update api and corresponding models