Reordered api args to fix syntax error