Update api.rb

I'm getting a syntax error with the colon.