Fixed HTTP verb naming in  api_pin() function