Update api.coffee