Added requestType to support requests where data is sent via JSON
Added legacy support