Differences

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

Link to this comparison view

Next revision Both sides next revision
en:sidebar:remoteapi:apiref:item:update_custom_property [23/01/2013 08:44]
127.0.0.1 external edit
en:sidebar:remoteapi:apiref:item:update_custom_property [25/01/2013 14:53]
zuve
Line 1: Line 1:
 {{indexmenu_n>​4}} {{indexmenu_n>​4}}
-====== ​Произвольные свойства ​====== +====== ​Custom properties ​====== 
-Чтобы создать новое свойство для элемента или изменить уже имеющееся,​ нужно использовать команду ​**item/​update_custom_property**: ​+ 
 +To create new custom property for item or update existed one use 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>,​
Line 8: Line 9:
 </​code>​ </​code>​
  
-===== Параметры ​===== +===== Parameters ​===== 
-Название ​Описание ​+Name Description ​
-| itemId | ID элемента ​+| itemId | item ID | 
-| name | название свойства ​+| name | custom property name 
-| value | значение свойства ​|+| value | custom property value |
  
  
-===== Возвращаемый результат ​=====+===== Response ​=====
 <​code=javascript>​ <​code=javascript>​
 { {
- "​n":<​text>,​ /​* ​имя свойства ​*/ + "​n":<​text>,​ /​* ​custom property name */ 
- "​v":<​text>​ /​* ​значение свойства ​*/+ "​v":<​text>​ /​* ​custom property value */
 } }
 </​code>​ </​code>​
Follow us on Facebook Gurtam Wialon Twitter Gurtam Wialon info@gurtam.com   |   Copyright © 2002-2024 Gurtam