跳转到内容

更新兴趣点

脚本设置代码块开始,然后添加下面的片段代码。

# ... 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))