Updated order of which param to pick in api controllers