Updated WebAPI call to include the response type