Use the following APIs to modify the information of a site.  

Create a transaction to start site modification

Remove a site transaction

Keep transaction alive

Create a parent site

Create a leaf site

Create sites

Delete a site

Add devices to a site

Replace devices in a site

Remove devices from a site

Commit modifications to rebuild a site

Use Flow to Modify 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.