Allow changing the api mode