Thank you for your answers, yes, I need to do it in r77.30 so I can't use the r80 api. Due of the requeriments of the enviroment of a migration I need to do it previously to upgrade r.80.10.
As I have to do it in with a lot of policy targets I would like to write a script to automatize this step and other ones that I need to do. I can get the policy targets to get the "export" info:
cpmiquerybin attr "" policies_collections "name='Standard'" -a __name__,installable_targets
But now I'm looking to assign targets to a policy package.