update the variant parent id to resource prefix