Pass pig_version as optional parameter to api