How do I use the api's "updateShape" method to rename objects? Let's say I have a netPort named "INPUT1" and I want to change it to "INPUT2". I've tried:
<span class="colour" style="color:rgb(187, 187, 187)"> </span><span class="colour" style="color:rgb(38, 139, 210)">api</span><span class="colour" style="color:rgb(187, 187, 187)">(</span><span class="colour" style="color:rgb(42, 161, 152)">"updateShape"</span><span class="colour" style="color:rgb(187, 187, 187)">, {</span>
<span class="colour" style="color:rgb(187, 187, 187)"> </span><span class="colour" style="color:rgb(38, 139, 210)">shapeType</span><span class="colour" style="color:rgb(187, 187, 187)">: </span><span class="colour" style="color:rgb(42, 161, 152)">"netport"</span><span class="colour" style="color:rgb(187, 187, 187)">,</span>
<span class="colour" style="color:rgb(187, 187, 187)"> </span><span class="colour" style="color:rgb(38, 139, 210)">name</span><span class="colour" style="color:rgb(187, 187, 187)">: </span><span class="colour" style="color:rgb(42, 161, 152)">"INPUT2"</span><span class="colour" style="color:rgb(187, 187, 187)">,</span>
<span class="colour" style="color:rgb(187, 187, 187)"> </span><span class="colour" style="color:rgb(38, 139, 210)">gId</span><span class="colour" style="color:rgb(187, 187, 187)">: "</span>gge2619<span class="colour" style="color:rgb(187, 187, 187)">"</span>
<span class="colour" style="color:rgb(187, 187, 187)"> });</span><br>
<br>
But this doesn't work. Please help.