changed :type => api to request, working specs 535
changed :type => api to request, working specs 535