A question about scripts such as 'Add Group Track.js'

Hi,
I’m trying to make a script that can batch assign events to a bank by import an event name list.
But I don’t know whether there is a method to assign and unassign events to a bank.
Thank you very much.

You can assign events to banks using event.relationships.banks.add(bankObject) or bank.relationships.events.add(eventObject). You need to pass the actual bank or event object into the function for it to work.

Thanks a lot !!!