Update asset metadata
Start from the script setup block, then add the snippet code below.
# ... script setup ...
TWIN_ID = "your-twin-id"ASSET_ID = "your-asset-id"
updated = api_patch( f"/v1/twin/{TWIN_ID}/assets/{ASSET_ID}/metadata", {"metadata": {"General": {"Description": "Created via API", "Status": "Active"}}},)print(json.dumps(updated, indent=2))