|  Developer
Updated on May 16, 2022

scripts/update_item_value

  • Update item value.
Edit
Field Type Required Description
value depends on item type + New item value.
min depends on item type New item min value.
max depends on item type New item max value.
Edit

Edit
Edit
				
					{
    "method": "extensions.plugin.run",
    "id": "_ID_",
    "params": {
        "script": "HUB:test_plugin/scripts/update_item_value",
        "scriptParams": {
            "item_id": "5f1572ef46aaf07c15271559",
            "value": {
                "value": 30,
                "scale": "celsius"
            }
        }
    }
}				
			
Edit
				
					{
    "error": null,
    "id": "_ID_",
    "result": {}
}