Refer to the example given below on how the contents can be entered for the rebindResources API:
<resource:rebindResources xmlns:resource="http://www.compositesw.com/services/system/admin/resource">
(1st block)
<resource:entries>
<resource:entry>
<resource:path>/shared/SQL_table/view1</resource:path>
<resource:type>TABLE</resource:type>
</resource:entry>
</resource:entries>
<resource:rebindRules>
<resource:rebindRule>
<resource:oldPath>/shared/SQL_table/view2</resource:oldPath>
<resource:oldType>TABLE</resource:oldType>
<resource:newPath>/shared/SQL_table/view3</resource:newPath>
<resource:newType>TABLE</resource:newType>
</resource:rebindRule>
</resource:rebindRules>
</resource:rebindResources>
In the same way, this API can be used to change the bindings for a number of resources at a time by adding the details in the XML editor in the form of blocks.
An example for reference:
----------------------------------
<resource:rebindResources xmlns:resource="http://www.compositesw.com/services/system/admin/resource">
(1st block)
<resource:entries>
<resource:entry>
<resource:path>/shared/SQL_table/view1</resource:path>
<resource:type>TABLE</resource:type>
</resource:entry>
</resource:entries>
<resource:rebindRules>
<resource:rebindRule>
<resource:oldPath>/shared/SQL_table/view2</resource:oldPath>
<resource:oldType>TABLE</resource:oldType>
<resource:newPath>/shared/SQL_table/view3</resource:newPath>
<resource:newType>TABLE</resource:newType>
</resource:rebindRule>
</resource:rebindRules>
(2nd block)
<resource:entries>
<resource:entry>
<resource:path>/shared/SQL_table/stuView</resource:path>
<resource:type>TABLE</resource:type>
</resource:entry>
</resource:entries>
<resource:rebindRules>
<resource:rebindRule>
<resource:oldPath>/shared/SQL_table/test/school</resource:oldPath>
<resource:oldType>TABLE</resource:oldType>
<resource:newPath>/shared/SQL_table/test/student</resource:newPath>
<resource:newType>TABLE</resource:newType>
</resource:rebindRule>
</resource:rebindRules>
(3rd block and so on)
...
...
</resource:rebindResources>
----------------------------------
However, if the requirement of the "rebindReosurces" API is for a large number of resources then it would become a tough task to do it manually.
For this, a custom script would have to be written to call the "rebindResources" API recursively.