Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
en:sidebar:remoteapi:apiref:item:update_custom_property [13/02/2013 07:01]
alek
en:sidebar:remoteapi:apiref:item:update_custom_property [29/11/2013 13:31] (current)
Line 2: Line 2:
 ====== Custom properties ====== ====== Custom properties ======
  
 +===== Create/​update property =====
 To create a new custom property for an item or update an existed one, use the command **item/​update_custom_property**: ​ To create a new custom property for an item or update an existed one, use the command **item/​update_custom_property**: ​
 <code javascript>​ <code javascript>​
Line 7: Line 8:
  "​name":<​text>,​  "​name":<​text>,​
  "​value":<​text>​}  "​value":<​text>​}
 +</​code>​
 +
 +===== Delete property =====
 +To delete custom property, use the same command but with empty **value** param:
 +<code javascript>​
 +svc=item/​update_custom_property&​params={"​itemId":<​long>,​
 + "​name":<​text>,​
 + "​value":""​}
 </​code>​ </​code>​
  
Follow us on Facebook Gurtam Wialon Twitter Gurtam Wialon info@gurtam.com   |   Copyright © 2002-2020 Gurtam