Hello,
I've tried api('getSource'), modified the resulting SIGNALS key names, then api('applySource'), but unfortunately, it doesn't appear to be possible to change Net Names. Doing api('getSource') afterwards doesn't reflect changes made.
I'd love to be proven wrong!
Answering my own question: one has to loop through all objects recursively and look for the "net" key of each, and modify its value.