Changed to v2 api
Moved api version to admin setting