Use the following APIs to modify the information of a site.
▪Create a transaction to start site modification
▪Commit modifications to rebuild a site
Different from the usage of other APIs, the use of the Site Modification APIs needs to follow a certain use flow.
Example: Create a site and assign some devices to the site.
1.Start a transaction to start the modification.
2.Create a site.
3.Assign devices to the site.
4.Send heartbeat calls to maintain control of the transaction in the idle state of a transaction.
5.Commit changes and rebuild sites.