Skip to content

List zones

Start from the script setup block, then add the snippet code below.

# ... script setup ...
TWIN_ID = "your-twin-id"
zones = api_get(f"/v1/twin/{TWIN_ID}/zones")
print(json.dumps(zones, indent=2))