Skip to content

Update point of interest

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

# ... script setup ...
TWIN_ID = "your-twin-id"
POI_ID = "your-poi-id"
updated = api_patch(
f"/v1/twin/{TWIN_ID}/pois/{POI_ID}",
{"name": "Inspection point (updated)", "color": {"r": 1.0, "g": 1.0, "b": 0.0, "a": 1.0}},
)
print(json.dumps(updated, indent=2))