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 [25/01/2013 14:53]
zuve
en:sidebar:remoteapi:apiref:item:update_custom_property [29/11/2013 13:31] (current)
Line 2: Line 2:
 ====== Custom properties ====== ====== Custom properties ======
  
-To create new custom property for item or update existed one use command **item/​update_custom_property**: ​+===== Create/​update property ===== 
 +To create ​new custom property for an item or update ​an existed oneuse the command **item/​update_custom_property**: ​
 <code javascript>​ <code javascript>​
 svc=item/​update_custom_property&​params={"​itemId":<​long>,​ svc=item/​update_custom_property&​params={"​itemId":<​long>,​
  "​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-2024 Gurtam