Differences
This shows you the differences between two versions of the page.
|
|
en:sidebar:remoteapi:apiref:item:update_custom_property [24/10/2013 13:11] mast |
en:sidebar:remoteapi:apiref:item:update_custom_property [29/11/2013 13:31] |
{{indexmenu_n>4}} | |
====== 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**: | |
<code javascript> | |
svc=item/update_custom_property¶ms={"itemId":<long>, | |
"name":<text>, | |
"value":<text>} | |
</code> | |
| |
===== Delete property ===== | |
To delete custom property use the same command but with empty **value**: | |
<code javascript> | |
svc=item/update_custom_property¶ms={"itemId":<long>, | |
"name":<text>, | |
"value":""} | |
</code> | |
| |
===== Parameters ===== | |
^ Name ^ Description ^ | |
| itemId | item ID | | |
| name | custom property name | | |
| value | custom property value | | |
| |
| |
===== Response ===== | |
<code=javascript> | |
{ | |
"n":<text>, /* custom property name */ | |
"v":<text> /* custom property value */ | |
} | |
</code> | |