This is currently not possible using an instruction but you can trigger a program call to a Python script that will change the parent an object is attached to.
I'm encountering an issue where my program event attach instruction is attaching the incorrect object. Object B is closer to the tool tcp, but I actually want to attach Object A. We have quite a few objects clustered together and I need to be able to specify the exact object I want to attach.
This first image shows the Event Instruction created from the API. The second image shows the Event Instruction that I want to be able to create from the API. Do you have any solutions?