Create site under a division node
Start from the script setup block, then add the snippet code below.
Create a site under a division. address is a street address or "latitude, longitude".
# ... script setup ...
PARENT_DIVISION_ID = "your-division-id"
site = api_post( f"/v1/nodes/{PARENT_DIVISION_ID}/site", { "name": "My Site", "address": "642 Rue De Courcelle, Montréal, Quebec H4C 3C5, Canada", },)print(json.dumps(site, indent=2))